diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2022-05-30 17:39:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 17:39:34 +0300 |
commit | 3ed2a0428c7341afae9a35f2b2786fe4a06ad306 (patch) | |
tree | 05471040eaa6e73ab7ac3e5976a0c2ab8026b4d6 /scene/gui/graph_edit.h | |
parent | 9b78d68605d88c6984737ced7feeebd46430d0e2 (diff) | |
parent | 771cb1261aca70df750474313f8050605735c420 (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.h | 6 |
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; |