aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/scroll_bar.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-05-01 10:44:08 -0300
committerJuan Linietsky2015-05-01 10:44:08 -0300
commit4804462ee06c1b3e2d1b50b857ce8693d3c0936d (patch)
tree5d1d06399c5ce28f27253943f35ef4a11d3ac633 /scene/gui/scroll_bar.cpp
parentaf42e244e0c41c92b6eeab379f7ba68869dbd0a9 (diff)
downloadgodot-4804462ee06c1b3e2d1b50b857ce8693d3c0936d.tar.gz
godot-4804462ee06c1b3e2d1b50b857ce8693d3c0936d.tar.zst
godot-4804462ee06c1b3e2d1b50b857ce8693d3c0936d.zip
Diffstat (limited to 'scene/gui/scroll_bar.cpp')
-rw-r--r--scene/gui/scroll_bar.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/scene/gui/scroll_bar.cpp b/scene/gui/scroll_bar.cpp
index 04a559124..b1fd914fc 100644
--- a/scene/gui/scroll_bar.cpp
+++ b/scene/gui/scroll_bar.cpp
@@ -51,20 +51,20 @@ void ScrollBar::_input_event(InputEvent p_event) {
if (b.button_index==5 && b.pressed) {
- if (orientation==VERTICAL)
- set_val( get_val() + get_page() / 4.0 );
- else
- set_val( get_val() + get_page() / 4.0 );
+ //if (orientation==VERTICAL)
+ // set_val( get_val() + get_page() / 4.0 );
+ //else
+ set_val( get_val() + get_page() / 4.0 );
accept_event();
}
if (b.button_index==4 && b.pressed) {
- if (orientation==HORIZONTAL)
- set_val( get_val() - get_page() / 4.0 );
- else
- set_val( get_val() - get_page() / 4.0 );
+ //if (orientation==HORIZONTAL)
+ // set_val( get_val() - get_page() / 4.0 );
+ //else
+ set_val( get_val() - get_page() / 4.0 );
accept_event();
}