From 4efe401a9c24960b7b39751afbc8dc1f1dd5bac6 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Mon, 28 Sep 2020 13:13:28 +0200 Subject: Don't warp mouse when selecting tracks --- editor/animation_track_editor.cpp | 5 ----- 1 file changed, 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 &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)); - } } } -- cgit v1.2.3