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.

Scrolling fast makes the date jump around

See original GitHub issue

Describe the bug

Attaching a recording: jUqAAavwTi

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:

Va8LS9Mxde

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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xanderdeseyncommented, Oct 13, 2020

@henninghall it seems this is only a fix for Android? We are still running into this issue on iOS.

1reaction
henninghallcommented, Jul 28, 2020

Great investigation! 🏆 I’ll look into it

Read more comments on GitHub >

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

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