diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-30 09:35:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 09:35:13 +0200 |
commit | 1b3d85e8bfce4550b62eaa632aecc204142e7762 (patch) | |
tree | a8b7ab17eec2d990a4e0da465993e0816e6badfa | |
parent | 72a3759ae5b56e5483ef82f8cf8831c6174f2087 (diff) | |
parent | 4efe401a9c24960b7b39751afbc8dc1f1dd5bac6 (diff) |
Merge pull request #42387 from KoBeWi/warp_no_mouse
Don't warp mouse when selecting tracks
-rw-r--r-- | editor/animation_track_editor.cpp | 5 |
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)); - } } } |