Move check for zero scroll distance to scroll_event()
This commit is contained in:
parent
7652065134
commit
e47e2b2560
@ -940,8 +940,7 @@ is_ascii_control_char(char x) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (fabs(deltaX) > 0.0 || fabs(deltaY) > 0.0)
|
||||
_glfwInputScroll(window, deltaX, deltaY, flags);
|
||||
_glfwInputScroll(window, deltaX, deltaY, flags);
|
||||
}
|
||||
|
||||
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
|
||||
|
||||
@ -586,6 +586,7 @@ scroll_event(double UNUSED xoffset, double yoffset, int flags) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (yoffset == 0.0) return;
|
||||
if (is_high_resolution) {
|
||||
yoffset *= OPT(touch_scroll_multiplier);
|
||||
if (yoffset * global_state.callback_os_window->pending_scroll_pixels < 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user