From a142c9a2f0be65218058c35b94202fbc4fd2c84c Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sat, 19 Aug 2017 15:23:45 +0100 Subject: Added smooth scrolling to TextEdit --- scene/gui/scroll_bar.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scene/gui/scroll_bar.h') diff --git a/scene/gui/scroll_bar.h b/scene/gui/scroll_bar.h index 8310e12590..e22d4da46d 100644 --- a/scene/gui/scroll_bar.h +++ b/scene/gui/scroll_bar.h @@ -83,6 +83,10 @@ class ScrollBar : public Range { bool drag_slave_touching_deaccel; bool click_handled; + bool scrolling; + double target_scroll; + bool smooth_scroll_enabled; + void _drag_slave_exit(); void _drag_slave_input(const Ref &p_input); @@ -100,6 +104,9 @@ public: void set_drag_slave(const NodePath &p_path); NodePath get_drag_slave() const; + void set_smooth_scroll_enabled(bool p_enable); + bool is_smooth_scroll_enabled() const; + virtual Size2 get_minimum_size() const; ScrollBar(Orientation p_orientation = VERTICAL); ~ScrollBar(); -- cgit v1.2.3