summaryrefslogtreecommitdiff
path: root/scene/gui/graph_edit.h
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2022-05-30 17:39:34 +0300
committerGitHub <noreply@github.com>2022-05-30 17:39:34 +0300
commit3ed2a0428c7341afae9a35f2b2786fe4a06ad306 (patch)
tree05471040eaa6e73ab7ac3e5976a0c2ab8026b4d6 /scene/gui/graph_edit.h
parent9b78d68605d88c6984737ced7feeebd46430d0e2 (diff)
parent771cb1261aca70df750474313f8050605735c420 (diff)
Merge pull request #61515 from Geometror/improve-graphedit-hotzones
Diffstat (limited to 'scene/gui/graph_edit.h')
-rw-r--r--scene/gui/graph_edit.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/graph_edit.h b/scene/gui/graph_edit.h
index 5484a2317c..f421aa9116 100644
--- a/scene/gui/graph_edit.h
+++ b/scene/gui/graph_edit.h
@@ -124,8 +124,8 @@ private:
HScrollBar *h_scroll = nullptr;
VScrollBar *v_scroll = nullptr;
- float port_grab_distance_horizontal = 0.0;
- float port_grab_distance_vertical = 0.0;
+ float port_hotzone_inner_extent = 0.0;
+ float port_hotzone_outer_extent = 0.0;
Ref<ViewPanner> panner;
bool warped_panning = true;
@@ -250,7 +250,7 @@ private:
friend class GraphEditMinimap;
void _minimap_toggled();
- bool _check_clickable_control(Control *p_control, const Vector2 &pos);
+ bool _check_clickable_control(Control *p_control, const Vector2 &r_mouse_pos, const Vector2 &p_offset);
bool arranging_graph = false;