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.

Scrollbar jumping on non touch capable devices (scroll using mouse)

See original GitHub issue

I found this weird scrollbar issue when using a mouse instead of the trackpad. Attaching the screen recording for a better understanding

Scroll using a mouse

https://user-images.githubusercontent.com/6171514/122398497-3cec2200-cf7a-11eb-81a4-90b6ebfd494e.mov

Scroll using a trackpad

https://user-images.githubusercontent.com/6171514/122398649-5f7e3b00-cf7a-11eb-91bb-c464cd25bafe.mov

PS: In both the screen recordings I am trying to scroll fast using the mouse as well as the trackpad.

When I pass captureMenuScroll={false}, the jumping issue has been fixed. But, it generates another problem that the scroll prevents in the select box and the body started scrolling. Could someone please have a look at this issue and fix it? Thanks!

Version: 4.3.1 Example used: One from the official website Live demo: CodeSandbox OS: macOS Big Sur, v11.3.1 Browser: Google Chrome, Version 91.0.4472.77 (Official Build) (x86_64)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

3reactions
Rall3ncommented, Jun 23, 2021

Seems like this is an issue with the implementation of our internal useScrollCapture hook.

The basic gist is, that we try to anticipate if we would reach the top or bottom and then jump to it (specifically this piece of code). I currently don’t now if this is still necessary at this point.

For now a workaround for this is to set the captureMenuScroll prop to false. Be warned that this will disable the onMenuScrollTo... props.

1reaction
bripkenscommented, Jun 23, 2021

Whoops, sorry @ebonow. Link updated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Mouse Scroll Wheel Jumps - Driver Easy
When you're using mouse scrolling up or down, you mouse scroll wheel jumps up or down now and then. It's annoying. Here are...
Read more >
How to Fix Mouse Scroll Wheel Jumping in Windows 10 ...
Method 1: Disabling Some Mouse Scrolling Features · Go to your taskbar, then click the Search icon. · Inside the Search box, type...
Read more >
How to Fix Mouse Scroll Wheel Jumps [5 Solutions]
Clean your mouse: Spin the scroll wheel and use an air pump blower to remove dust and dirt that has accumulated around the...
Read more >
Random Mouse Scroll Jumps - Microsoft Community
Hi, so i'm using a Razer Diamondback and Windows 10 for reference. Whenever i scroll, i get random jumps in different directions, ...
Read more >
How to Fix Mouse Scroll Wheel 'Jumps' on Windows - Appuals
Under the Basic Settings tab, make sure you uncheck both the Accelerated Vertical Scrolling and the Reverse Scroll Direction options in order to ......
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