Skip to content

Ensure scroll controller only active when <Control> pressed#2513

Merged
stsdc merged 5 commits intomainfrom
jeremypw/fix-scroll-afterpermanentdelete
Nov 29, 2024
Merged

Ensure scroll controller only active when <Control> pressed#2513
stsdc merged 5 commits intomainfrom
jeremypw/fix-scroll-afterpermanentdelete

Conversation

@jeremypw
Copy link
Contributor

@jeremypw jeremypw commented Oct 25, 2024

Fixes #2512

The issue was caused by the dialog thrown when permanently deleting an item using the keyboard causing the "key-release" signal being swallowed. This resulted in the scroll controller that handles zooming remaining active and blocking the native scroll handler.

This is all because of a "feature" of the Gtk3 scroll controller which always swallows scroll events so needs to be switched on and off to avoid blocking the native scroll controller. This should become unnecessary in Gtk4.

This PR makes the zoom scroll handler turn itself off if it gets triggered unexpectedly.

@jeremypw jeremypw marked this pull request as ready for review October 26, 2024 15:22
@jeremypw jeremypw requested a review from a team October 26, 2024 15:22
@stsdc stsdc enabled auto-merge (squash) November 29, 2024 14:06
@stsdc stsdc merged commit 71c03d1 into main Nov 29, 2024
@stsdc stsdc deleted the jeremypw/fix-scroll-afterpermanentdelete branch November 29, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scroll gesture stops working after permanently deleting a file

3 participants