summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2023-11-29 01:18:53 +0100
committerder richter <der.richter@gmx.de>2023-12-02 14:59:59 +0100
commitf551a9da3471fcb2568e9c4d031e2ffb867e35a8 (patch)
treeec457608eff3e599407f973be6f2b7e8f75b456c /video
parentaaff9edf57bd9a7911bb4da172fbde9ed393f05e (diff)
downloadmpv-f551a9da3471fcb2568e9c4d031e2ffb867e35a8.tar.bz2
mpv-f551a9da3471fcb2568e9c4d031e2ffb867e35a8.tar.xz
mac: report modifier keys on precise scrolling
modifier keys weren't reported when using the trackpad to scroll. Fixes #11195
Diffstat (limited to 'video')
-rw-r--r--video/out/mac/view.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/mac/view.swift b/video/out/mac/view.swift
index c4776c3fba..0ac90f5a54 100644
--- a/video/out/mac/view.swift
+++ b/video/out/mac/view.swift
@@ -227,7 +227,7 @@ class View: NSView {
cmd = delta > 0 ? SWIFT_WHEEL_LEFT : SWIFT_WHEEL_RIGHT
}
- mpv?.putAxis(cmd, delta: abs(delta))
+ mpv?.putAxis(cmd, modifiers: event.modifierFlags, delta: abs(delta))
}
override func scrollWheel(with event: NSEvent) {