W3C home > Mailing lists > Public > www-style@w3.org > August 2010

Re: [cssom-view] scroll events

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 13 Aug 2010 08:50:17 +0200
To: "CSS WG" <www-style@w3.org>
Cc: "robert@ocallahan.org" <robert@ocallahan.org>
Message-ID: <op.vhc6lzjn64w2qv@anne-van-kesterens-macbook-pro.local>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:30 GMT