From b8ecd580056b7b9adf3138b0a10da1eceb70ca5a Mon Sep 17 00:00:00 2001 From: lwouis Date: Sun, 30 Nov 2025 18:39:41 +0100 Subject: [PATCH] feat: prevent mouse-hover when using trackpad swipes (closes #5071) --- src/ui/main-window/ThumbnailsView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/main-window/ThumbnailsView.swift b/src/ui/main-window/ThumbnailsView.swift index 8e574f85..fe2c17f9 100644 --- a/src/ui/main-window/ThumbnailsView.swift +++ b/src/ui/main-window/ThumbnailsView.swift @@ -279,7 +279,8 @@ class ScrollView: NSScrollView { override func mouseMoved(with event: NSEvent) { // disable mouse hover during scrolling as it creates jank during elastic bounces at the start/end of the scrollview - if isCurrentlyScrolling { return } + // also disable it when ScrollwheelEvents is enabled, as it indicates that a multi-finder gesture is in progress + if isCurrentlyScrolling || ScrollwheelEvents.shouldBeEnabled { return } if let hit = hitTest(App.app.thumbnailsPanel.mouseLocationOutsideOfEventStream) { var target: NSView? = hit while !(target is ThumbnailView) && target != nil {