Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Scroll event not firing on md-content #6657

Closed
mackelito opened this issue Jan 12, 2016 · 3 comments
Closed

Scroll event not firing on md-content #6657

mackelito opened this issue Jan 12, 2016 · 3 comments
Labels
needs: demo A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue P4: minor Minor issues. May not be fixed without community contributions.
Milestone

Comments

@mackelito
Copy link

I need to fire a function on a scroll event... but the directive placed inside a md-content does not fire any scroll events?

el.on('scroll', loadData);

If I add this to the directive the scroll event works.. but other material directives stops working. (md-toolbar with the md-scroll-shrink attr)

 .productList{
    height: 100vh;
    overflow: scroll;
  }

Any ideas?

@ThomasBurleson
Copy link
Contributor

Whenever possible, provide a CodePen demo.

@ThomasBurleson ThomasBurleson added needs: demo A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue Q1 labels Jan 13, 2016
@mackelito
Copy link
Author

Took me some time to recreate it all but here you go :)

http://codepen.io/mackelito/pen/bErpPq

To make the scrolling directive work just remove the css for "list-of-people"...

@ThomasBurleson ThomasBurleson added P4: minor Minor issues. May not be fixed without community contributions. and removed Q1 labels Jan 13, 2016
@ThomasBurleson ThomasBurleson modified the milestone: Backlog Jan 13, 2016
@mackelito
Copy link
Author

See that the "needs: demo" label is still on this issue... Let me know if the demo needs anything else!

@ThomasBurleson ThomasBurleson modified the milestones: Backlog, Deprecated Apr 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: demo A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue P4: minor Minor issues. May not be fixed without community contributions.
Projects
None yet
Development

No branches or pull requests

2 participants