question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always getting SCROLL_REASON.OBSERVED even after setting through setScrollTop

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sanketjo96commented, Dec 10, 2019

Hey - sorry for late reply. I went with initial round of testing and things are working fine. Thanks.

0reactions
marchaoscommented, Dec 7, 2019

@sanketjo96 any luck testing this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found