W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2013

Re: [whatwg] Proposing: "autoscroll" event

From: James Greene <james.m.greene@gmail.com>
Date: Tue, 14 May 2013 12:55:19 -0500
Message-ID: <CALrbKZhG7e+Yyk57-BLaTCj7dHN+iWSGmCCCUE2MH+zkz9CDBw@mail.gmail.com>
To: whatwg@lists.whatwg.org
So, to that end, what about just adjusting the spec for the "hashchange"
event to also fire when the page is initially loaded if the URL contains a
fragment identifier (hash)?  The other scenarios mentioned would already be
covered by the "hashchange" event.

    James Greene

On Tue, May 14, 2013 at 12:48 PM, Kyle Simpson <getify@gmail.com> wrote:

> > when should autoscroll be called? only after a url with a hash is
> clicked in the same page? when following a link to a : url#specific_hash?
> both cases?
> I initially conceived it as only firing on initial page load for a
> URL#hash, so definitely that case. But I can also see how it might be
> useful to listen for such events even when clicking within the same
> document, so I'd certainly entertain that addition. :)
> --Kyle
Received on Tuesday, 14 May 2013 17:56:05 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:59 UTC