From 008738df56dfbbb92d420e5018aa6463ce0e620c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 18 Sep 2023 09:15:26 -0700 Subject: [PATCH] core: only prevent repeat mouse events for motion Fixes #485 --- src/Surface.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Surface.zig b/src/Surface.zig index 6ff8c11b9..2cd946c2f 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -1336,7 +1336,7 @@ fn mouseReport( // Record our new point. We only want to send a mouse event if the // cell changed, unless we're tracking raw pixels. - if (self.io.terminal.flags.mouse_format != .sgr_pixels) { + if (action == .motion and self.io.terminal.flags.mouse_format != .sgr_pixels) { if (self.mouse.event_point) |last_point| { if (last_point.eql(viewport_point)) return; }