From fe3f8439a7d796dd18b107fec8f57744f374dcb1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 7 Oct 2024 10:48:16 -1000 Subject: [PATCH] macos: send mouse cursor position events for right mouse dragged Fixes #2407 --- macos/Sources/Ghostty/SurfaceView_AppKit.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/macos/Sources/Ghostty/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/SurfaceView_AppKit.swift index 1e9708f0f..8148118fb 100644 --- a/macos/Sources/Ghostty/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/SurfaceView_AppKit.swift @@ -517,6 +517,14 @@ extension Ghostty { self.mouseMoved(with: event) } + override func rightMouseDragged(with event: NSEvent) { + self.mouseMoved(with: event) + } + + override func otherMouseDragged(with event: NSEvent) { + self.mouseMoved(with: event) + } + override func scrollWheel(with event: NSEvent) { guard let surface = self.surface else { return }