Fix y offset of mouse if status at top. GitHub issue 4738 from Michael

Grant.
This commit is contained in:
nicm
2025-12-04 14:45:32 +00:00
committed by Nicholas Marriott
parent 2fc123cf4a
commit ff207eb583
3 changed files with 11 additions and 2 deletions

View File

@@ -1271,7 +1271,11 @@ have_event:
if (c->tty.mouse_scrolling_flag == 0 &&
where == SCROLLBAR_SLIDER) {
c->tty.mouse_scrolling_flag = 1;
c->tty.mouse_slider_mpos = sl_mpos;
if (m->statusat == 0) {
c->tty.mouse_slider_mpos = sl_mpos +
m->statuslines;
} else
c->tty.mouse_slider_mpos = sl_mpos;
}
break;
case WHEEL: