diff options
author | 2022-07-15 13:26:54 +0300 | |
---|---|---|
committer | 2022-07-15 14:14:41 -0400 | |
commit | 6b97c4fa710975586a701a9491fe461499a4b6dc (patch) | |
tree | a408b704ddbbf846c8e9fd1d38cb54c0f7f47535 | |
parent | fix: remove redundant empty statement in main.c (diff) | |
download | sway-6b97c4fa710975586a701a9491fe461499a4b6dc.tar.gz sway-6b97c4fa710975586a701a9491fe461499a4b6dc.tar.zst sway-6b97c4fa710975586a701a9491fe461499a4b6dc.zip |
input: chase delta_discrete semantics change
-rw-r--r-- | sway/input/seatop_default.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index 2684e55a..875426bf 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c | |||
@@ -715,7 +715,7 @@ static void handle_pointer_axis(struct sway_seat *seat, | |||
715 | seat_get_active_tiling_child(seat, tabcontainer); | 715 | seat_get_active_tiling_child(seat, tabcontainer); |
716 | list_t *siblings = container_get_siblings(cont); | 716 | list_t *siblings = container_get_siblings(cont); |
717 | int desired = list_find(siblings, active->sway_container) + | 717 | int desired = list_find(siblings, active->sway_container) + |
718 | round(scroll_factor * event->delta_discrete); | 718 | round(scroll_factor * event->delta_discrete / WLR_POINTER_AXIS_DISCRETE_STEP); |
719 | if (desired < 0) { | 719 | if (desired < 0) { |
720 | desired = 0; | 720 | desired = 0; |
721 | } else if (desired >= siblings->length) { | 721 | } else if (desired >= siblings->length) { |