mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 16:28:19 +02:00
When drag-scrolling stop the scroll when the mouse button is released.
This commit is contained in:
@@ -162,6 +162,7 @@ update_drag(bool from_button, Window *w, bool is_release, int modifiers) {
|
||||
if (from_button) {
|
||||
if (is_release) {
|
||||
global_state.active_drag_in_window = 0;
|
||||
w->last_drag_scroll_at = 0;
|
||||
if (screen->selection.in_progress)
|
||||
screen_update_selection(screen, w->mouse_cell_x, w->mouse_cell_y, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user