Bug 508098 - Zooming with "Push" mouse tracking should zoom towards the cursor instead of last zoomed area
Summary: Zooming with "Push" mouse tracking should zoom towards the cursor instead of ...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (other bugs)
Version First Reported In: 6.4.4
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2025-08-11 03:32 UTC by Christopher Smith
Modified: 2026-10-23 18:05 UTC (History)
3 users (show)

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


Attachments
Current KWin Push zoom behavior (2.84 MB, video/webm)
2025-08-11 03:32 UTC, Christopher Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Smith 2025-08-11 03:32:23 UTC
Created attachment 183943 [details]
Current KWin Push zoom behavior

SUMMARY
With the "Push" mouse tracking option, the screen will zoom towards where the effect was zoomed in previously. I believe macOS always zooms towards the mouse cursor, sort of like how zooming works with "Proportional" mouse tracking.

OBSERVED RESULT
Zooming follows previous zoom position

EXPECTED RESULT
Zooming follows cursor position

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 42 (KDE Plasma Desktop Edition)
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Comment 1 TraceyC 2025-08-11 22:47:29 UTC
Passing this along for consideration
Comment 2 Bug Janitor Service 2026-10-16 23:35:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/10132
Comment 3 Zamundaaa 2026-10-19 21:45:49 UTC
Git commit b513396c7a3dba87ec2c6e2fb19ebe6ceba40a0c by Xaver Hugl, on behalf of Maxim Stomphorst.
Committed on 19/10/2026 at 21:29.
Pushed by zamundaaa into branch 'master'.

plugins/zoom: Zoom towards the pointer in push mode

In push mode the zoom area is placed around m_prevPoint, which only
moved when pushing at the screen edges. Changing the zoom level
therefore zoomed towards the area where the previous zoom ended, or
where the pointer was when zooming started. The pointer then drifted
away and could leave the screen, after which the view panned after it
in several steps.

Start a new zoom at the pointer, and keep the pointer at the same place
on the screen while the zoom level changes.

M  +12   -0    src/plugins/zoom/zoom.cpp
M  +1    -0    src/plugins/zoom/zoom.h

https://invent.kde.org/plasma/kwin/-/commit/b513396c7a3dba87ec2c6e2fb19ebe6ceba40a0c
Comment 4 Zamundaaa 2026-10-19 22:52:37 UTC
Git commit 440628141d0213397bac60cf130ddbd0ea4e0676 by Xaver Hugl, on behalf of Maxim Stomphorst.
Committed on 19/10/2026 at 21:56.
Pushed by zamundaaa into branch 'Plasma/6.8'.

plugins/zoom: Zoom towards the pointer in push mode

In push mode the zoom area is placed around m_prevPoint, which only
moved when pushing at the screen edges. Changing the zoom level
therefore zoomed towards the area where the previous zoom ended, or
where the pointer was when zooming started. The pointer then drifted
away and could leave the screen, after which the view panned after it
in several steps.

Start a new zoom at the pointer, and keep the pointer at the same place
on the screen while the zoom level changes.
(cherry picked from commit b513396c7a3dba87ec2c6e2fb19ebe6ceba40a0c)

M  +12   -0    src/plugins/zoom/zoom.cpp
M  +1    -0    src/plugins/zoom/zoom.h

https://invent.kde.org/plasma/kwin/-/commit/440628141d0213397bac60cf130ddbd0ea4e0676