Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event 'content-scroll' does not show scrolling position #96

Closed
4 of 8 tasks
alfalabs opened this issue May 6, 2016 · 1 comment
Closed
4 of 8 tasks

event 'content-scroll' does not show scrolling position #96

alfalabs opened this issue May 6, 2016 · 1 comment

Comments

@alfalabs
Copy link

alfalabs commented May 6, 2016

Description

While using <paper-scroll-header-panel> the event 'content-scroll' listener function does not show the scrolling position:

 window.addEventListener('content-scroll', function (ev) {
        console.log('event: content-scroll ' + '\nwindow.scrollY = ' + window.scrollY );
 });

Expected outcome

Scrolling position should be available in the listener.
If applicable, a demo of using <paper-scroll-header> with Polymer.IronScrollTargetBehavior should be added to help devs with this problem.

Actual outcome

window.scrollY shows zero all the time while scrolling.

Live Demo

[(https://jsbin.com/hofice/edit?html,console,output)]
The code is an example, link hrefs<link rel="import" href="../../bower_components/paper-scroll-header-panel/paper-scroll-header-panel.html"> are as per my app directory structure.

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9 - Mac not tested
  • Safari 8
  • Safari 7
  • Edge
  • IE 11 with window.pageYOffset
  • IE 10
@alfalabs alfalabs closed this as completed May 7, 2016
@alfalabs
Copy link
Author

alfalabs commented May 7, 2016

Please see issue #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant