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:
Hugo Locurcio
2020-02-02 19:47:33 +01:00
parent b73e7623c8
commit c8949f21e7
2 changed files with 47 additions and 2 deletions

View File

@ -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();