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/7cc7ded2-a640-4386-a9fa-55e519928914%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
