Răsfoiți Sursa

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

Marko Pintera 10 ani în urmă
părinte
comite
a87c1d6138
3 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  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;
             isMouseDown = false;
             isDragInBounds = false;
             isDragInBounds = false;
             triggerEndDrag = true;
             triggerEndDrag = true;
+            triggerStartDrag = false;
         }
         }
 
 
         void Input_OnPointerPressed(PointerEvent ev)
         void Input_OnPointerPressed(PointerEvent ev)

+ 1 - 0
MBansheeEditor/ProjectWindow.cs

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

+ 0 - 3
TODO.txt

@@ -56,9 +56,6 @@ Code quality improvements:
 ----------------------------------------------------------------------
 ----------------------------------------------------------------------
 Polish stage 1
 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
 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)
 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
 Decent looking default layout