Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Nov 29, 2024

Conversation

jeremypw
Copy link
Collaborator

@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
4 checks passed
@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