diff options
Diffstat (limited to 'video/out/cocoa-cb/events_view.swift')
-rw-r--r-- | video/out/cocoa-cb/events_view.swift | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/cocoa-cb/events_view.swift b/video/out/cocoa-cb/events_view.swift index 73ccba527f..124a7a028d 100644 --- a/video/out/cocoa-cb/events_view.swift +++ b/video/out/cocoa-cb/events_view.swift @@ -179,6 +179,11 @@ class EventsView: NSView { } } + override func magnify(with event: NSEvent) { + cocoaCB.layer?.inLiveResize = event.phase == .ended ? false : true + cocoaCB.window?.addWindowScale(Double(event.magnification)) + } + func signalMouseDown(_ event: NSEvent) { signalMouseEvent(event, MP_KEY_STATE_DOWN) if event.clickCount > 1 { |