mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-08 10:06:22 -05:00
input: auto-scroll: apply scrollback.multiplier to the interval divisor
This commit is contained in:
parent
7fedf2f801
commit
dd14e0b3c3
1 changed files with 3 additions and 2 deletions
5
input.c
5
input.c
|
|
@ -1341,10 +1341,11 @@ wl_pointer_motion(void *data, struct wl_pointer *wl_pointer,
|
|||
: y - (term->height - term->margins.bottom);
|
||||
|
||||
assert(distance > 0);
|
||||
distance /= term->scale;
|
||||
int divisor
|
||||
= distance * term->conf->scrollback.multiplier / term->scale;
|
||||
|
||||
selection_start_scroll_timer(
|
||||
term, 100000000 / (distance > 0 ? distance : 1),
|
||||
term, 400000000 / (divisor > 0 ? divisor : 1),
|
||||
scroll_up ? SELECTION_SCROLL_UP : SELECTION_SCROLL_DOWN,
|
||||
selection_col);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue