Merge pull request #7238 from Hinsbart/region_ed_fix_zoom

TextureRegionEditor: Fix mouse wheel scroll speed.
This commit is contained in:
George Marques 2016-12-04 11:43:23 -02:00 committed by GitHub
commit 4235abe8dc
1 changed files with 2 additions and 2 deletions

View File

@ -388,9 +388,9 @@ void TextureRegionEditor::_region_input(const InputEvent& p_input)
drag_index = -1; drag_index = -1;
} }
} }
} else if (mb.button_index == BUTTON_WHEEL_UP) { } else if (mb.button_index == BUTTON_WHEEL_UP && mb.pressed) {
_zoom_in(); _zoom_in();
} else if (mb.button_index == BUTTON_WHEEL_DOWN) { } else if (mb.button_index == BUTTON_WHEEL_DOWN && mb.pressed) {
_zoom_out(); _zoom_out();
} }
} else if (p_input.type==InputEvent::MOUSE_MOTION) { } else if (p_input.type==InputEvent::MOUSE_MOTION) {