Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #19983

Re: Scroll position detection

From Joao Rodrigues <groups_jr-1@yahoo.com.br>
Newsgroups comp.lang.javascript
Subject Re: Scroll position detection
Date 2013-05-27 15:24 -0300
Organization Aioe.org NNTP Server
Message-ID <ko08c2$i11$1@speranza.aioe.org> (permalink)
References (7 earlier) <28567346.elAEKrzd9Y@PointedEars.de> <knvsaa$dmv$1@speranza.aioe.org> <1886046.z6t1GHbE6s@PointedEars.de> <ko00lg$r85$1@speranza.aioe.org> <1614253.6SbFCPW3aX@PointedEars.de>

Show all headers | View raw


On 27/05/2013 14:41, Thomas 'PointedEars' Lahn wrote:
> Joao Rodrigues wrote:
>
>> On 27/05/2013 12:27, Thomas 'PointedEars' Lahn wrote:
>>> you claimed something that I have proven wrong.
>>
>> You have proven?! You have only spotted that was a W3C's Working Draft;
>> ie, a Recommendation to-be in some time in the future. Just that!
>
> A Working Draft ist _not_ “a Recommendation to-be some time in the future”.
> It is something that *might become* a Recommendation some time in the
> future.  Not only the W3C Process Document, that I cited, but also the
> paragraph that I quoted from the very document that you cited makes that
> *very* clear to anyone who can read.
>

The W3C Editors' Draft has just been updated (27 May 2013):
<http://dev.w3.org/csswg/cssom-view/>

Note that the pageYOffset attribute (which actually returns the same 
value returned by the scrollY attribute) is just one item among many 
others of that document. AFAIC pageYOffset hasn't changed since the 
latest version of the Working Draft.

Nowadays, pageYOffset is widely supported by *all* major web browsers 
(IE9+, FF3+, Safari 4+, Chrome 4+, Opera 10+) since the Working Draft 
was produced by the W3C's CSS Working Group (people from Microsoft, 
Google, Mozilla, Opera, Apple, Adobe, W3C Staff, HP, Intel, etc., even 
from jQuery Foundation - sorry to let you know that.)
<http://www.w3.org/Style/CSS/members>

Therefore, going back to the OP's code, I cannot see any reason to not 
test for window.pageYOffset before testing for the MSIE proprietary 
scrollTop.


-- 
Joao Rodrigues

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Scroll position detection Tuxedo <tuxedo@mailinator.com> - 2013-05-25 12:08 +0200
  Re: Scroll position detection "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-05-25 13:12 +0200
    Re: Scroll position detection Tuxedo <tuxedo@mailinator.com> - 2013-05-25 16:02 +0200
    Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 01:07 -0300
      Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 11:48 +0200
        Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 09:33 -0300
          Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 14:39 +0200
            Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 11:33 -0300
              Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 16:42 +0200
          Re: Scroll position detection Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-27 12:37 +0000
            Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 09:57 -0300
              Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 16:45 +0200
                Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 11:58 -0300
                Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 17:27 +0200
                Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 13:12 -0300
                Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 19:41 +0200
                Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 15:24 -0300
                Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 21:10 +0200
                Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 18:35 -0300
                Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-28 00:00 +0200
                Re: Scroll position detection Stefan Weiss <krewecherl@gmail.com> - 2013-05-28 02:30 +0200
      Re: Scroll position detection Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-27 10:16 +0000
        Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 09:45 -0300
          Re: Scroll position detection Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-27 21:24 +0000

csiph-web