ScrollDirection isn't displaying the proper direction
See original GitHub issueBug 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:
- Setup infinite scroll
- Scroll down
- Observe no
scrollDirection
while scrolling down - 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
Then scrolling after new load:
Your Environment
- Device: MacBook Pro
- OS: macOS X
- Browser: Chrome
- Version: v2.0.1
Additional Information
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top 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 >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
Thank you!
@stramel I think this issue should be fixed in v2.0.3