Scrolling with mouse wheel when a selection is active should update the selection

Fixes #7543
This commit is contained in:
Kovid Goyal 2024-05-20 09:58:48 +05:30
parent dbeb31b7ad
commit 85a64f2934
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 1 deletions

View file

@ -90,6 +90,8 @@ Detailed list of changes
- Remote control: @ action: Fix some actions being performed on the active window instead of the matched window (:iss:`7438`)
- Scrolling with mouse wheel when a selection is active should update the selection (:iss:`7453`)
0.34.1 [2024-04-19]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -961,7 +961,10 @@ scroll_event(double xoffset, double yoffset, int flags, int modifiers) {
}
}
} else {
if (screen->linebuf == screen->main_linebuf) screen_history_scroll(screen, abs(s), upwards);
if (screen->linebuf == screen->main_linebuf) {
screen_history_scroll(screen, abs(s), upwards);
if (screen->selections.in_progress) update_drag(w);
}
else fake_scroll(w, abs(s), upwards);
}
}