Add visual feedback when hovering or dragging the code minimap grabber
This makes it more obvious that the minimap grabber can be dragged to scroll.
This commit is contained in:
parent
b73e7623c8
commit
c8949f21e7
2 changed files with 47 additions and 2 deletions
|
|
@ -446,12 +446,14 @@ private:
|
|||
|
||||
// minimap scroll
|
||||
bool minimap_clicked = false;
|
||||
bool hovering_minimap = false;
|
||||
bool dragging_minimap = false;
|
||||
bool can_drag_minimap = false;
|
||||
|
||||
double minimap_scroll_ratio = 0.0;
|
||||
double minimap_scroll_click_pos = 0.0;
|
||||
|
||||
void _update_minimap_hover();
|
||||
void _update_minimap_click();
|
||||
void _update_minimap_drag();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue