Mouse support on the scrollbars, from Michael Grant.

This commit is contained in:
nicm
2024-11-12 09:32:56 +00:00
parent c26d71d3e9
commit 713cacab1e
7 changed files with 634 additions and 70 deletions

View File

@ -1001,6 +1001,10 @@ screen_redraw_draw_pane_scrollbar(struct screen_redraw_ctx *ctx,
screen_redraw_draw_scrollbar(ctx, wp, sb_pos, sb_x, sb_y, sb_h,
slider_h, slider_y);
/* Store current position and height of the slider */
wp->sb_slider_y = slider_y; /* top of slider y pos in scrollbar */
wp->sb_slider_h = slider_h; /* height of slider */
}
static void