From 807d87681c5eca52fee692321ae0279324204cc6 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 11 Feb 2020 13:55:27 +0100 Subject: scroll with mouse --- src/ui.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui.h') diff --git a/src/ui.h b/src/ui.h index 02655b4..bffbe69 100644 --- a/src/ui.h +++ b/src/ui.h @@ -74,9 +74,13 @@ typedef struct t_dropdown_state typedef struct t_scroll_state { s32 height; + s32 width; + s32 x; + s32 y; s32 scroll; s32 scroll_start_offset_y; bool in_scroll; + bool mouse_scrolling; } scroll_state; typedef struct t_ui_layout -- cgit v1.2.3-70-g09d2