1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Don't warp mouse when selecting tracks

This commit is contained in:
Tomasz Chabora
2020-09-28 13:13:28 +02:00
parent 64d3827b19
commit 4efe401a9c

View File

@@ -4959,11 +4959,6 @@ void AnimationTrackEditor::_scroll_input(const Ref<InputEvent> &p_event) {
box_selection->set_size(rect.size); box_selection->set_size(rect.size);
box_select_rect = rect; box_select_rect = rect;
if (get_local_mouse_position().y < 0) {
//avoid box selection from going up and lose focus to viewport
warp_mouse(Vector2(mm->get_position().x, 0));
}
} }
} }