godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.55k stars 20.66k forks source link

[Windows] Trackpad gestures in the 2D workspace are different from that of the standard conventions #72414

Open cvlnomen opened 1 year ago

cvlnomen commented 1 year ago

Godot version

Godot 4 Beta 16 mono

System information

Windows 10, Laptop with a trackpad

Issue description

The 2D workspace uses trackpad gestures that differ from that of the standard conventions when trying to perform the following two actions:

These differences in gestures can lead to a lot of confusion, especially when switching between the 2D workspace and applications/components that do follow the conventions (like the code editor).

Here is an example when pinching the trackpad in both the 2D workspace and the script editor:
Godot_v4 0-beta16_mono_win64_iEcASlbH3n

Steps to reproduce

Perform the pinch/slide trackpad gesture in both the 2D workspace as well as the code editor.

Minimal reproduction project

N/A

stephannv commented 1 year ago

On Mac Os 12.6 using 4.0.beta16 the gestures are working as expected:

Proggle commented 1 year ago

Can confirm this is still happening in the released version (also on windows 10, acer laptop). Extremely confusing

vgwyn commented 1 year ago

In Windows, pinching in/out still scrolls instead of zooms on 4.1 dev 3

MuubNito commented 10 months ago

Ouch, this is still a problem on Godot 4.1.3... This is probably something related to mouse scrolling being somehow related into the trackpad (I have never worked in godot code btw, just a guess)

homexhome commented 7 months ago

4.2.1 Can confirm - still happening, hyper confusing

Calinou commented 7 months ago

Can anyone reproduce this on 3.5.3?

jefvel commented 6 months ago

@Calinou In Godot 3.5.3, both pinching and scrolling on a touchpad causes it to zoom. In 4.2.1, pinching scrolls vertically, and scrolling zooms.

Tested on a laptop with windows 11. On MacOS it works correctly.

jefvel commented 6 months ago

After looking into it a bit, it seems like this is fixable by setting the editor property editors/panning/2d_editor_panning_scheme to Scroll Pans image It makes panning and zooming possible with a touchpad on Windows.

It might better to translate the touchpad gesture events into InputEventPanGesture and InputEventMagnifyGesture though, since that's how it seems to work on MacOS.

TanManWithPlan commented 2 months ago

Just tested it and it worked on my laptop, thank you so much!