mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
input: scroll: call term_mouse_up() once, after all term_mouse_down()
Note that scroll button release events are not actually sent to the client, but this makes the code more correct, logically.
This commit is contained in:
parent
abc36d8f09
commit
040a1cd00d
1 changed files with 1 additions and 0 deletions
1
input.c
1
input.c
|
|
@ -657,6 +657,7 @@ mouse_scroll(struct wayland *wayl, int amount)
|
|||
} else {
|
||||
for (int i = 0; i < amount; i++)
|
||||
term_mouse_down(term, button, wayl->mouse.row, wayl->mouse.col);
|
||||
term_mouse_up(term, button, wayl->mouse.row, wayl->mouse.col);
|
||||
|
||||
scrollback(term, amount);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue