Skip to content

Commit e97441d

Browse files
committed
...
1 parent 1b51b44 commit e97441d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

glfw/x11_window.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ handle_xi_motion_event(_GLFWwindow *window, XIDeviceEvent *de) {
14471447
*off = delta;
14481448
if (!d->is_highres) {
14491449
if (v->increment == 120.) type = GLFW_SCROLL_OFFEST_V120;
1450-
else if (fabs(delta) >= v->increment) {
1450+
else if (fabs(delta) >= fabs(v->increment)) {
14511451
type = GLFW_SCROLL_OFFSET_LINES;
14521452
if (v->increment != 0) *off /= v->increment;
14531453
}

0 commit comments

Comments
 (0)