Browse Source

Fixing an issue with ProjectWindow where it would keep receiving mouse drag events after it was docked/undocked

Marko Pintera 10 years ago
parent
commit
a87c1d6138
3 changed files with 2 additions and 3 deletions
  1. 1 0
      MBansheeEditor/ProjectDropTarget.cs
  2. 1 0
      MBansheeEditor/ProjectWindow.cs
  3. 0 3
      TODO.txt

+ 1 - 0
MBansheeEditor/ProjectDropTarget.cs

@@ -78,6 +78,7 @@ namespace BansheeEditor
             isMouseDown = false;
             isDragInBounds = false;
             triggerEndDrag = true;
+            triggerStartDrag = false;
         }
 
         void Input_OnPointerPressed(PointerEvent ev)

+ 1 - 0
MBansheeEditor/ProjectWindow.cs

@@ -323,6 +323,7 @@ namespace BansheeEditor
         private void DoOnDragEnd(Vector2I windowPos)
         {
             EndDragSelection();
+            autoScrollAmount = 0;
         }
 
         private void ClearHoverHighlight()

+ 0 - 3
TODO.txt

@@ -56,9 +56,6 @@ Code quality improvements:
 ----------------------------------------------------------------------
 Polish stage 1
 
-Fix a crash when re-opening scene window
-Crash in DefaultHandleManager.PreInput when just flying around the scene while having a handle active and hovering over it a few times
-
 After undocking ProjectWindow the auto-scroll seems to be stuck in up position
 When selecting an gizmo icon the selection seems delayed and its gizmos flash for a frame before hiding (Can't reproduce atm but I saw it)
 Decent looking default layout