main: Correct pointer scroll handling

closes: #15

Reported-by: retrotails
fix-damage-tracking
Andri Yngvason 2022-07-30 11:02:18 +00:00
parent df203e5908
commit 9ef4184e87
1 changed files with 2 additions and 2 deletions

View File

@ -461,14 +461,14 @@ void on_pointer_event(struct pointer_collection* collection,
if (vertical_steps < 0) {
vertical_steps *= -1;
scroll_mask |= POINTER_SCROLL_UP;
} else {
} else if (vertical_steps > 0) {
scroll_mask |= POINTER_SCROLL_DOWN;
}
if (horizontal_steps < 0) {
horizontal_steps *= -1;
scroll_mask |= POINTER_SCROLL_LEFT;
} else {
} else if (horizontal_steps > 0) {
scroll_mask |= POINTER_SCROLL_RIGHT;
}