瀏覽代碼

Merge pull request #42387 from KoBeWi/warp_no_mouse

Don't warp mouse when selecting tracks
Rémi Verschelde 5 年之前
父節點
當前提交
1b3d85e8bf
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      editor/animation_track_editor.cpp

+ 0 - 5
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));
-		}
 	}
 }