1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Scroll inspector while drag hovering near the edge

This commit is contained in:
dugramen
2025-03-10 18:10:08 -04:00
parent 30bb49ec1f
commit 3c85281610
4 changed files with 61 additions and 0 deletions

View File

@@ -62,12 +62,15 @@ private:
bool drag_touching = false;
bool drag_touching_deaccel = false;
bool beyond_deadzone = false;
bool scroll_on_drag_hover = false;
ScrollMode horizontal_scroll_mode = SCROLL_MODE_AUTO;
ScrollMode vertical_scroll_mode = SCROLL_MODE_AUTO;
int deadzone = 0;
bool follow_focus = false;
int scroll_border = 20;
int scroll_speed = 12;
struct ThemeCache {
Ref<StyleBox> panel_style;
@@ -123,6 +126,8 @@ public:
bool is_following_focus() const;
void set_follow_focus(bool p_follow);
void set_scroll_on_drag_hover(bool p_scroll);
HScrollBar *get_h_scroll_bar();
VScrollBar *get_v_scroll_bar();
void ensure_control_visible(Control *p_control);