core: only prevent repeat mouse events for motion

Fixes #485
This commit is contained in:
Mitchell Hashimoto
2023-09-18 09:15:26 -07:00
parent c0e097efba
commit 008738df56

View File

@ -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;
}