remove redundant code
This commit is contained in:
parent
9c4230ad9c
commit
494035c94b
@ -580,8 +580,7 @@ scroll_event(double UNUSED xoffset, double yoffset, int flags) {
|
|||||||
global_state.callback_os_window->pending_scroll_pixels = pixels;
|
global_state.callback_os_window->pending_scroll_pixels = pixels;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
s = abs(((int)round(pixels))) / global_state.callback_os_window->fonts_data->cell_height;
|
s = ((int)round(pixels)) / global_state.callback_os_window->fonts_data->cell_height;
|
||||||
if (pixels < 0) s *= -1;
|
|
||||||
global_state.callback_os_window->pending_scroll_pixels = pixels - s * (int) global_state.callback_os_window->fonts_data->cell_height;
|
global_state.callback_os_window->pending_scroll_pixels = pixels - s * (int) global_state.callback_os_window->fonts_data->cell_height;
|
||||||
} else {
|
} else {
|
||||||
s = (int) round(yoffset * OPT(wheel_scroll_multiplier));
|
s = (int) round(yoffset * OPT(wheel_scroll_multiplier));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user