You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user