Bug 498576 - It is frustratingly hard to consistently trigger the pinch to zoom
Summary: It is frustratingly hard to consistently trigger the pinch to zoom
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: Gestures (show other bugs)
Version: git-stable-Plasma/6.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-12 21:06 UTC by kiwifruit
Modified: 2025-01-12 21:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kiwifruit 2025-01-12 21:06:06 UTC
SUMMARY
I have an external touchpad with gesture support. When I try to use the pinch to zoom, my fingers need to be at a 45-degree angle relative to each other for it to trigger a pinch-to-zoom gesture.

It seems very sensitive to the exact angle, since trying to pinch to zoom organically always ends up failing after 1 or 2 successful *pinches*.

STEPS TO REPRODUCE
1. Have a trackpad
2. Open up Gwenview or Firefox in the Wayland session
3. Try to pinch-to-zoom any image / webpage multiple times
4. Notice that it doesn't consistently zoom.

OBSERVED RESULT
Doing the same pinch to zoom gesture, at a slightly off angle, gives inconsistent results. Sometimes it evens zooms out slightly when trying to zoom! Other time, it registers the pinch-to-zoom as a scroll instead.

EXPECTED RESULT
I expect the pinch-to-zoom functionality to work pretty much as smoothly as pinch-to-zoom in Android or iOS. Plasma's pinch-to-zoom is personally challenging to consistently trigger.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250109
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.8-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 31.0 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XT

ADDITIONAL INFORMATION
The touchpad in question is an Apple Magic Trackpad Type-C version
Comment 1 kiwifruit 2025-01-12 21:14:38 UTC
I'm not sure if this is a Kwin bug, a Firefox / gwenview bug, a libinput bug or even a bug with my trackpad.

So if anyone can replicate this, I'd love to know your setup
Comment 2 Zamundaaa 2025-01-12 21:22:30 UTC
KWin doesn't detect the gestures it just passes libinput's events on to apps. It's most likely an issue in libinput rather than in the apps; please report it at https://gitlab.freedesktop.org/libinput/libinput/-/issues