ui: further improvements to double/triple dragging detection; df: use double/triple dragging to determine mouse-drag-range. dbl -> use token range, triple -> use line. pick appropriate side of mouse drag range on drag based on side of mark.

This commit is contained in:
Ryan Fleury
2024-03-29 11:17:01 -07:00
parent 2842901f9c
commit 8c5c0be040
5 changed files with 61 additions and 4 deletions
+1
View File
@@ -496,6 +496,7 @@ struct UI_State
UI_Key clipboard_copy_key;
U64 press_timestamp_history_us[UI_MouseButtonKind_COUNT][3];
UI_Key press_key_history[UI_MouseButtonKind_COUNT][3];
Vec2F32 press_pos_history[UI_MouseButtonKind_COUNT][3];
Vec2F32 drag_start_mouse;
Arena *drag_state_arena;
String8 drag_state_data;