feat: prevent mouse-hover when using trackpad swipes (closes #5071)
This commit is contained in:
1 parent
2725834c4a
commit
b8ecd58005
1 file changed
+2
-1
@@ -279,7 +279,8 @@ class ScrollView: NSScrollView {
|
|||||||
|
|
||||||
override func mouseMoved(with event: NSEvent) {
|
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
|
// 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) {
|
if let hit = hitTest(App.app.thumbnailsPanel.mouseLocationOutsideOfEventStream) {
|
||||||
var target: NSView? = hit
|
var target: NSView? = hit
|
||||||
while !(target is ThumbnailView) && target != nil {
|
while !(target is ThumbnailView) && target != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user