mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
input: chase delta_discrete semantics change
This commit is contained in:
parent
8d8a21c9c3
commit
6b97c4fa71
|
@ -715,7 +715,7 @@ static void handle_pointer_axis(struct sway_seat *seat,
|
||||||
seat_get_active_tiling_child(seat, tabcontainer);
|
seat_get_active_tiling_child(seat, tabcontainer);
|
||||||
list_t *siblings = container_get_siblings(cont);
|
list_t *siblings = container_get_siblings(cont);
|
||||||
int desired = list_find(siblings, active->sway_container) +
|
int desired = list_find(siblings, active->sway_container) +
|
||||||
round(scroll_factor * event->delta_discrete);
|
round(scroll_factor * event->delta_discrete / WLR_POINTER_AXIS_DISCRETE_STEP);
|
||||||
if (desired < 0) {
|
if (desired < 0) {
|
||||||
desired = 0;
|
desired = 0;
|
||||||
} else if (desired >= siblings->length) {
|
} else if (desired >= siblings->length) {
|
||||||
|
|
Loading…
Reference in a new issue