Bug 479810 - Use scroll-wheel and trackpad for Zoom/Magnifier effect
Summary: Use scroll-wheel and trackpad for Zoom/Magnifier effect
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-14 16:43 UTC by Christopher Smith
Modified: 2024-01-19 03:32 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Smith 2024-01-14 16:43:14 UTC
SUMMARY
The Zoom and Magnifier effects currently use keyboard shortcuts to zoom in/out. There should also be an option to use the trackpad or scroll-wheel while holding the Meta key (similar to macOS, e.g. https://www.youtube.com/shorts/3TXOHl8knsE). Trackpad can either use a 2D pinch or two-finger scroll.

STEPS TO REPRODUCE
1. Open Desktop Effects settings
2. Open settings for Zoom/Magnifier
3. Enable scroll control through checkbox/radio button
Comment 1 ratijas 2024-01-17 15:21:27 UTC
Just to add a note, this feature might conflict with an existing feature: custom Window Actions in Window Behavior KCM.

For example, currently I'm using Meta as a modifier key with a Mouse Wheel action to change window opacity.

So, future developers are advised to keep the implementation cooperative with existing gestures, and warn users about duplicated gestures, just like we currently warn about duplicated shortcuts.
Comment 2 Nate Graham 2024-01-17 15:46:56 UTC
This already exists, but the keyboard keys you need to hit are Ctrl+Meta scroll.
Comment 3 Christopher Smith 2024-01-19 03:32:58 UTC
(In reply to Nate Graham from comment #2)
> This already exists, but the keyboard keys you need to hit are Ctrl+Meta
> scroll.

I just found your blog post on this and it does seem interesting that this isn't documented anywhere in the UI yet. Didn't really look into it much before coming here, thanks for the info though!