Just set needs_update flag on mouse drag

This commit is contained in:
Jeremy Soller 2024-01-04 14:27:18 -07:00
parent 556c32e33f
commit 412acc2b70
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -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,