The docs for the core-scroll-header-panel 
<http://www.polymer-project.org/docs/elements/core-elements.html#core-scroll-header-panel>
 
should also list the scroller property.

Am Montag, 8. September 2014 20:02:15 UTC+2 schrieb cletusw:
>
> That's because the page isn't scrolling. An internal element of 
> core-header-panel is. Current versions of core-header-panel include a 
> scroller 
> <http://www.polymer-project.org/docs/elements/core-elements.html#core-header-panel>
>  
> property that gives you access to the element on which you can get the 
> correct scrollTop. Looks like 
> http://www.polymer-project.org/apps/polymer-tutorial/finished/ is using 
> an old one, so it doesn't have that.
>
> Em segunda-feira, 8 de setembro de 2014 11h32min38s UTC-6, Sid Kat 
> escreveu:
>>
>> It seems that you cannot get the scroll state of a page like that from 
>> the tutorial 
>> http://www.polymer-project.org/apps/polymer-tutorial/finished/.
>> I've encountered the same issue with a similar page where most of the 
>> content goes into one custom polymer element.
>> Scrolling up and down does not change document.body.scrollTop or 
>> window.scrollY (or whatever), they are always 0.
>> And button events on such pages do not distinguish between pageY, clientY, 
>> screenY and y.
>>
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/b45ca2f0-fd1a-48a6-a87c-b148194391d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to