feat: prevent mouse-hover when using trackpad swipes (closes #5071)

This commit is contained in:
lwouis committed 2025-12-06 12:31:32 +01:00
1 parent 2725834c4a
commit b8ecd58005
1 file changed
+2 -1
+2 -1
View File
@@ -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 {