You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Zoom texture region via mouse wheel
(cherry picked from commit 1e7d0c6ac1)
This commit is contained in:
committed by
Rémi Verschelde
parent
4f07998552
commit
16fc229e5d
@@ -388,6 +388,10 @@ void TextureRegionEditor::_region_input(const InputEvent& p_input)
|
||||
drag_index = -1;
|
||||
}
|
||||
}
|
||||
} else if (mb.button_index == BUTTON_WHEEL_UP) {
|
||||
_zoom_in();
|
||||
} else if (mb.button_index == BUTTON_WHEEL_DOWN) {
|
||||
_zoom_out();
|
||||
}
|
||||
} else if (p_input.type==InputEvent::MOUSE_MOTION) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user