Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oversensitivity in trackpad scrolling and gestures #49873

Open
starkle opened this issue Jun 24, 2021 · 19 comments
Open

Oversensitivity in trackpad scrolling and gestures #49873

starkle opened this issue Jun 24, 2021 · 19 comments

Comments

@starkle
Copy link

starkle commented Jun 24, 2021

Godot version

3.3.2.stable

System information

Windows 10, GLES3, Intel(R) Iris(R) Xe Graphics

Issue description

Vertical scrolling with a trackpad is noticeably too sensitive. Each pixel of scrolling input causes a huge jump in movement.

Similar issues suggested disabling Smooth Scrolling or tweaking Text Editor / V Scroll Speed under the Editor Settings, but those only relate to the Text Editor's behavior, and doesn't fix the oversensitivity in the first place.

Interestingly, all horizontal scrolling feels spot-on and smooth. I wouldn't have guessed it uses a totally different system, but I think it must.

The problem is not my trackpad, since other applications scroll just fine.

Steps to reproduce

Go to any element with vertical scrolling (or create your own with a ScrollContainer or something) and scroll using the trackpad with two fingers. Contrast this with other software's scrolling, or even scrolling horizontally with Godot.

Minimal reproduction project

Issue can be observed in the editor, as long as a trackpad is being used.

Video showcase: https://youtu.be/HGxDTq8mwT4

@Calinou
Copy link
Member

Calinou commented Jun 24, 2021

This is related to #13139. High-precision scrolling currently is only supported on macOS.

As for horizonal scrolling, I guess it may not try to use high-precision scrolling events. Can any macOS user confirm this? cc @bruvzg

@starkle
Copy link
Author

starkle commented Jun 24, 2021

I borrowed a friend's 2013 MacBook and found it to work fine there. It was smooth and consistent between horizontal and vertical scrolling.

@starkle
Copy link
Author

starkle commented Jun 24, 2021

Out of curiosity, I exported a test project to HTML5, and found that both horizontal and vertical scrolling have the jumpy oversensitive behavior.

Demonstration: https://youtu.be/BMTmfK7ePLQ

I'll try to test HTML5 scrolling on MacOS soon.
Edit: I also observed this jumpy oversensitive behavior on both axes on an HTML5 export running on Chrome in MacOS.

@bruvzg
Copy link
Member

bruvzg commented Jun 29, 2021

As for horizonal scrolling, I guess it may not try to use high-precision scrolling events. Can any macOS user confirm this? cc @bruvzg

Two-finger pan and zoom gestures on M1 MacBook trackpad works fine and smooth, sensitivity is the same as in the other apps. Horizontal scrolling with the side wheel on MX Master 3 mouse is also smooth.

Godot in the Linux VM on the same mac does not recognize pan gesture or side wheel (probably it's qemu limitation), zoom is smooth.

@bluepandion
Copy link

I can confirm this problem on a Samsung Galaxy Book Pro 360 / Windows 10.

Touchpad scrolling is unusable even in the text editor. Setting V Scroll Speed has no effect at all, even if it's all the way down to zero. Disabling Smooth Scrolling has no effect either.

This laptop does not have a hi-dpi display.

@starkle
Copy link
Author

starkle commented Sep 5, 2021

Update for Godot 3.3.3: On the Windows version the scrolling now behaves more as expected :D

However, while the script editor is better, it has a problem with deceleration. If you scroll quickly then release, it does not slowly scroll to a stop. It keeps its high momentum for a period of time then abruptly comes to a stop.

Also, the pinch to zoom gesture on trackpad causes discrete intervals of motion, rather than the continuous motion one would expect. It's much more usable now, but this is worth pointing out.

Also, web exports (as well as the web editor) still have oversensitive scrolling.

@starkle
Copy link
Author

starkle commented Sep 5, 2021

I'm going to change the issue title to more generally cover trackpad scrolling and gesture issues. Let me know if that's not a good idea.

@starkle starkle changed the title Consistent oversensitivity in vertical scrolling with trackpad Oversensitivity in trackpad scrolling and gestures Sep 5, 2021
@Samwalton9
Copy link

Samwalton9 commented Aug 8, 2022

I'm not sure if this is the same issue but I find that the touchpad is oversensitive when both horizontal and vertical scrollbars are present in the script editor window. When trying to scroll up and down, the editor will often detect micro horizontal movements and seemingly process those instead of the vertical scroll, stopping your scroll, which feels really bad.

I'm using an M1 Macbook Pro touchpad.

@JayPavlina
Copy link

I am experiencing the same issue as @Samwalton9 on a Macbook Pro m1. Scrolling vertically in the script editor suddenly stops because it seems to detect a mild horizontal scroll. For me it also happens when the horizontal scroll bar is not present. It makes the script editor very unpleasant to use.

@AshirRashid
Copy link

The issue makes GraphEdit in an HTML5 export unusable on a MacBook. Two-finger MacBook trackpad gestures on a GraphEdit do not work in the HTML5 export as they work in the editor. I can only confirm this for M1 Pro macOS Monterey 12.6.

An MVP (https://github.com/AshirRashid/godot-web-trackpad-issue) is deployed at https://ashirrashid.github.io/godot-web-trackpad-issue-export/.
A Demonstration using the MVP: https://www.youtube.com/watch?v=PgEsGBrZ9Vo
When attempting to pan with two fingers (which works fine in the editor) in the web version, InputEventMouseButton events are registered.

@coelhucas
Copy link

Sorry for bumping this one, but some players have reported their scroll to not work (nothing happen at all) in devices such as the Razer Blade 15 3070. Is it possible to be part of this issue? I searched a bit about it and this was the one related issue that I found.

@Calinou
Copy link
Member

Calinou commented Feb 12, 2023

Sorry for bumping this one, but some players have reported their scroll to not work (nothing happen at all) in devices such as the Razer Blade 15 3070. Is it possible to be part of this issue? I searched a bit about it and this was the one related issue that I found.

I assume it's a trackpad with high-precision scrolling, so it's likely the same issue (it's not exclusive to macOS).

@chardish
Copy link

On a MacBook, macOS Sonoma, v4.1.3.stable.official [f06b6836a], I'm also noticing some frustrating scrolling issues in the script editor when using a 2-finger trackpad scroll gesture:

  • Usually, when scrolling a text editor, vertical scrolling is much more important than horizontal scrolling. However, the text editor seems to prioritize horizontal scrolling over vertical, so much so that a diagonal gesture that's maybe 80% vertical 20% horizontal tends to get interpreted as a horizontal gesture.
  • Horizontal scrolling is much more sensitive than vertical scrolling, so doing the above (scrolling mostly down but a little to the right) gets interpreted as scrolling rapidly to the right.
  • There is a lot of vertical scrolling inertia in the text editor (much moreso than other Mac applications)

Scrolling a 2D viewport works as expected, though, which tells me that the text editor scrolling in particular is off. Turning off Smooth Scrolling doesn't change any of the above.

@Samwalton9
Copy link

The main issue I experienced is now resolved, as of 4.2.1.stable - scrolling vertically no longer randomly stops to prioritise horizontal scrolling. I am experienced the much-less-frustrating issue noted above that "the text editor seems to prioritize horizontal scrolling over vertical", such that when i'm scrolling vertically I often also get horizontal scrolling too, even for very small movements. There should be some deadzone when vertically scrolling. Anyway, all in all this is a now a minor rather than major annoyance :)

@eobet
Copy link
Contributor

eobet commented Jun 30, 2024

Testing 4.3 beta 2 on Linux with "prefer Wayland" and not only is the scrolling way too sensitive in ALL directions, pinch gesture doesn't zoom in and out on the mouse cursor location (or even center of the shader editor area), but rather to seemingly the bottom left of the infinitely scrolling shader editor area, which is quite bad... pretty much unusably so, I'd say.

@KaiserCalm
Copy link

Same here, Godot 4.3 on Linux NixOS COSMIC DE Wayland, the trackpad scroll sensitivity is way too much.

@and-rad
Copy link
Contributor

and-rad commented Oct 16, 2024

Can confirm for current master (v4.4.dev.custom_build [fd7239c]), specs:

Arch Linux, Wayland
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3

Scrolling is hypersensitive on Wayland, it's fine otherwise.

@Riteo
Copy link
Contributor

Riteo commented Oct 16, 2024

Hi @and-rad

Scrolling is hypersensitive on Wayland, it's fine otherwise.

Have you opted in for the experimental Wayland backend in the editor settings or are you using XWayland?

@and-rad
Copy link
Contributor

and-rad commented Oct 16, 2024

Wayland backend. XWayland is where there's no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests