1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00

mac/window: fix window pinch gesture and modify current-window-scale

this will prevent jumping of the window size in the case the window size
was 'externally' modified and not via the window-scale property, when
using the pinch gesture.

Fixes #11594
Fixes #13799
This commit is contained in:
der richter 2024-04-01 23:00:52 +02:00
parent 9bb7d96bf9
commit 6df07ce90c

View File

@ -505,7 +505,7 @@ class Window: NSWindow, NSWindowDelegate {
func addWindowScale(_ scale: Double) {
if !isInFullscreen {
input?.command("add window-scale \(scale)")
input?.command("add current-window-scale \(scale)")
}
}