[ui] Fix ui scrolling

This commit is contained in:
martinfouilleul 2023-05-17 15:48:25 +02:00
parent 9f7cfd985c
commit 2a01cba026
2 changed files with 2819 additions and 2815 deletions

5632
src/ui.c

File diff suppressed because it is too large Load Diff

View File

@ -234,7 +234,7 @@ static void process_wheel_event(mp_window_data* window, f32 x, f32 y)
event.window = mp_window_handle_from_ptr(window);
event.type = MP_EVENT_MOUSE_WHEEL;
event.move.deltaX = x/30.0f;
event.move.deltaY = y/30.0f;
event.move.deltaY = -y/30.0f;
event.move.mods = mp_get_mod_keys();
mp_queue_event(&event);