summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-09-28 13:13:28 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2020-09-28 13:13:28 +0200
commit4efe401a9c24960b7b39751afbc8dc1f1dd5bac6 (patch)
treeeba6fb8153270a192a9a9426d165efc367061331
parent64d3827b19851e71b61ae144828e0ea8f37b6615 (diff)
Don't warp mouse when selecting tracks
-rw-r--r--editor/animation_track_editor.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index d569a2ca0a..39e863ae0f 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -4959,11 +4959,6 @@ void AnimationTrackEditor::_scroll_input(const Ref<InputEvent> &p_event) {
box_selection->set_size(rect.size);
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));
- }
}
}