From 412acc2b701e86698fdc59464d6bb694e5d46392 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 4 Jan 2024 14:27:18 -0700 Subject: [PATCH] Just set needs_update flag on mouse drag --- src/terminal_box.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal_box.rs b/src/terminal_box.rs index 13b5214..cc9ade2 100644 --- a/src/terminal_box.rs +++ b/src/terminal_box.rs @@ -631,7 +631,7 @@ where let mut term = terminal.term.lock(); term.selection = Some(selection); } - terminal.update(); + terminal.needs_update = true; state.click = Some((click_kind, Instant::now())); state.dragging = Some(Dragging::Buffer); } else if scrollbar_rect.contains(Point::new(x, y)) { @@ -699,7 +699,7 @@ where selection.update(location, side); } } - terminal.update(); + terminal.needs_update = true; } Dragging::Scrollbar { start_y,