Fix broken downward scrolling
This commit is contained in:
parent
4e7498b854
commit
021dfcad39
1 changed files with 1 additions and 1 deletions
|
|
@ -580,7 +580,7 @@ scroll_event(double UNUSED xoffset, double yoffset, int flags) {
|
|||
global_state.callback_os_window->pending_scroll_pixels = pixels;
|
||||
return;
|
||||
}
|
||||
s = ((int)round(pixels)) / global_state.callback_os_window->fonts_data->cell_height;
|
||||
s = (int)round(pixels) / (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 {
|
||||
s = (int) round(yoffset * OPT(wheel_scroll_multiplier));
|
||||
|
|
|
|||
Loading…
Reference in a new issue