parent
df203e5908
commit
9ef4184e87
|
@ -461,14 +461,14 @@ void on_pointer_event(struct pointer_collection* collection,
|
||||||
if (vertical_steps < 0) {
|
if (vertical_steps < 0) {
|
||||||
vertical_steps *= -1;
|
vertical_steps *= -1;
|
||||||
scroll_mask |= POINTER_SCROLL_UP;
|
scroll_mask |= POINTER_SCROLL_UP;
|
||||||
} else {
|
} else if (vertical_steps > 0) {
|
||||||
scroll_mask |= POINTER_SCROLL_DOWN;
|
scroll_mask |= POINTER_SCROLL_DOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (horizontal_steps < 0) {
|
if (horizontal_steps < 0) {
|
||||||
horizontal_steps *= -1;
|
horizontal_steps *= -1;
|
||||||
scroll_mask |= POINTER_SCROLL_LEFT;
|
scroll_mask |= POINTER_SCROLL_LEFT;
|
||||||
} else {
|
} else if (horizontal_steps > 0) {
|
||||||
scroll_mask |= POINTER_SCROLL_RIGHT;
|
scroll_mask |= POINTER_SCROLL_RIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue