Always getting SCROLL_REASON.OBSERVED even after setting through setScrollTop
See original GitHub issueThis looks like minor miss. Is that intended to call this.props.onScroll
always with SCROLL_REASON.OBSERVED (from onScroll handler) ?
this.props.onScroll({ scrollTop, scrollLeft, scrollReason: SCROLL_REASON.OBSERVED });
In my one of the use case, I wanted to track when user is actually scrolling. So this differentiation will be crucial for me
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Element.scrollTop - Web APIs | MDN
The Element.scrollTop property gets or sets the number of pixels that an element's content is scrolled vertically.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey - sorry for late reply. I went with initial round of testing and things are working fine. Thanks.
@sanketjo96 any luck testing this?