summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.h
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2021-09-06 16:22:36 +0200
committerGitHub <noreply@github.com>2021-09-06 16:22:36 +0200
commit1f97d5738434eb0a11c5d2615125a165e8e751b5 (patch)
tree13b8aa4bde490b74f94b15e3d6616d0ec451f9d6 /scene/gui/text_edit.h
parentb0b30aaf41191ccbfdc8786cb79a76efb16d1459 (diff)
parentc8949f21e7243817cda03d690cb2296d71f210ac (diff)
Merge pull request #35859 from Calinou/minimap-add-hover-pressed-feedback
Add visual feedback when hovering or dragging the code minimap grabber
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r--scene/gui/text_edit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index ced03e19d0..07999c2442 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -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();