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.

ScrollDirection isn't displaying the proper direction

See original GitHub issue

Bug Report

Describe the Bug

While scrolling down, the scrollDirection doesn’t update to say 'down'. When the new page of items loads, it causes the scroll bar to jump and reports the scrollDirection of 'up' of which, I (the user) never scrolled up and can be misleading.

How to Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Setup infinite scroll
  2. Scroll down
  3. Observe no scrollDirection while scrolling down
  4. Observe scrollDirection of 'up' when the screen repaints with new items

CodeSandbox Link

https://codesandbox.io/s/react-cool-inviewissues499-kl2xg

Expected Behavior

I would expect while scrolling to show the direction I’m scrolling. I would expect after a period of time not scrolling, to remove the scrollDirection. I would expect when new items load/render, the scrollDirection won’t report the jump up.

Screenshots

image

Then scrolling after new load: image

Your Environment

  • Device: MacBook Pro
  • OS: macOS X
  • Browser: Chrome
  • Version: v2.0.1

Additional Information

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stramelcommented, Apr 6, 2021

Thank you!

1reaction
wellyshencommented, Apr 6, 2021

@stramel I think this issue should be fixed in v2.0.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why scroll direction horizontal is not working? - flutter
scrollDirection : Axis.horizontal I have used this in my code but the result is still I am not able to get horizontal scroll...
Read more >
Set scroll direction independently for mouse and trackpad
If you DISABLE "Scroll direction: natural" in System Preferences, then: Mouse scroll direction is CORRECT (i.e. rotate wheel towards you = ...
Read more >
How To Sync Reverse Mouse and Trackpad Scroll Direction ...
I recently upgraded my desk setup with the Logitech MX Master 3 to accompany my Magic Trackpad 2. However, the mouse and trackpad...
Read more >
Reverse two finger scroll direction (natural scrolling)?
First way: using GNOME Settings. I don't know which version of Ubuntu you're using, but in Ubuntu 13.04 to Ubuntu 20.04 (I guess),...
Read more >
ListView class - widgets library
ListView is the most commonly used scrolling widget. It displays its children one after another in the scroll direction. In the cross axis,...
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