summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-12-04 11:43:23 -0200
committerGitHub <noreply@github.com>2016-12-04 11:43:23 -0200
commit4235abe8dc9918d479229e6703d18e2b801011c3 (patch)
tree13b24ad0a46943b305cb6f172a6fb67c82c53c4b /tools/editor
parent56195873b6f6e84fdaa1c0e98ab9abaee72be9ac (diff)
parentc2040324beea92dcf7b44be5f4827257bd872d00 (diff)
Merge pull request #7238 from Hinsbart/region_ed_fix_zoom
TextureRegionEditor: Fix mouse wheel scroll speed.
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/plugins/texture_region_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/plugins/texture_region_editor_plugin.cpp b/tools/editor/plugins/texture_region_editor_plugin.cpp
index 4a24c4d344..9348f683f2 100644
--- a/tools/editor/plugins/texture_region_editor_plugin.cpp
+++ b/tools/editor/plugins/texture_region_editor_plugin.cpp
@@ -388,9 +388,9 @@ void TextureRegionEditor::_region_input(const InputEvent& p_input)
drag_index = -1;
}
}
- } else if (mb.button_index == BUTTON_WHEEL_UP) {
+ } else if (mb.button_index == BUTTON_WHEEL_UP && mb.pressed) {
_zoom_in();
- } else if (mb.button_index == BUTTON_WHEEL_DOWN) {
+ } else if (mb.button_index == BUTTON_WHEEL_DOWN && mb.pressed) {
_zoom_out();
}
} else if (p_input.type==InputEvent::MOUSE_MOTION) {