Scrolling fast makes the date jump around
See original GitHub issueDescribe the bug
Attaching a recording:
It appears that when quickly dragging the date around, the behavior is pretty erratic.
It’s worse in practice when moving from date to time:
I think this is a race condition with onDateChange
firing while a new scroll is initiated and is still in progress. Thus the date
prop gets updated to the date prior to the current scroll.
Expected behavior
Date shouldn’t jump around.
To Reproduce Add example code that reproduces the behavior.
<DatePicker
fadeToColor="none"
textColor="#ffffff"
date={matchInput.startTime}
minuteInterval={15}
onDateChange={onDateChange}
/>
Smartphone (please complete the following information):
- OS: both
- React Native version 0.63.1
- react-native-date-picker version 3.0.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
[SOLVED] Mouse Scroll Wheel Jumps - Driver Easy
The mouse scroll wheel jumps issue can be solved by changing settings. If the wheel speed is set up too high, the mouse...
Read more >How to Fix Mouse Scroll Wheel Jumps [5 Solutions]
Step 2: Navigate to the Wheel tab. Make sure that scrolling is enabled. Under Vertical scrolling, adjust The following number of lines at...
Read more >How to scroll fast/ jump to a special date? : r/signal - Reddit
As per me currently no way to do what you want the best you can do is search for a word which was...
Read more >Mouse wheel "jumps" in opposite direction when scrolling
I bought a new mouse (Jelly Comb MV09F Vertical Wireless Mouse) about 6 months ago, and it was working just fine until about...
Read more >Calendar jumps months ahead when I move my mouse from ...
Donna H solution did not work for me and I didn't try Gcal but what I did do was disable smooth scrolling in...
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 Free
Top 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
@henninghall it seems this is only a fix for Android? We are still running into this issue on iOS.
Great investigation! 🏆 I’ll look into it