From 2c44e208604dfb4792dbb6752d01d52fa816ba9e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 20 Sep 2024 21:40:03 -0700 Subject: [PATCH] macos: EventSinkHostingView must not override mouse events This breaks split resizing. Removing this doesn't seem to have negative effects for hidden titlebars (which it was originally made for). --- macos/Sources/Helpers/EventSinkHostingView.swift | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/macos/Sources/Helpers/EventSinkHostingView.swift b/macos/Sources/Helpers/EventSinkHostingView.swift index f5b3cbe1c..8b27b8a7d 100644 --- a/macos/Sources/Helpers/EventSinkHostingView.swift +++ b/macos/Sources/Helpers/EventSinkHostingView.swift @@ -15,18 +15,6 @@ class EventSinkHostingView: NSHostingView { return true } - override func mouseDown(with event: NSEvent) { - // Do nothing - } - - override func mouseDragged(with event: NSEvent) { - // Do nothing - } - - override func mouseUp(with event: NSEvent) { - // Do nothing - } - override var mouseDownCanMoveWindow: Bool { return false }