Re: [cssom-view] scroll events

On Tue, 13 Oct 2009 09:46:31 +0200, Anne van Kesteren <annevk@opera.com>  
wrote:
>  From the WHATWG list, by roc:
>
>> In Gecko, it's just something that fires asynchronously
>> after a node's scrollTop/scrollLeft have changed. Scroll
>> events for the viewport fire at the document and bubble
>> to the window, scroll events on elements with 'overflow'
>> not 'visible' fire at that element and don't bubble."

This is now defined as well, including that only a single event is  
dispatched in this scenario:

   document.body.scrollTop = 500
   document.body.scrollTop = 0

I.e. when there is a sequence of scrollTop/scrollLeft/scroll() invocations.


What I changed is that the event is not cancelable (since it is not). Let  
me know if that is a problem.


Links to definitions in the specification:

http://dev.w3.org/csswg/cssom-view/#dom-window-scroll
http://dev.w3.org/csswg/cssom-view/#dom-element-scrolltop
http://dev.w3.org/csswg/cssom-view/#dom-element-scrollleft


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Friday, 13 August 2010 06:50:53 UTC