Skip to content

Commit 72182de

Browse files
committed
Minor improvement to PanelCursorHandler
1 parent f47822f commit 72182de

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

DynamicPanels.unitypackage

-27 Bytes
Binary file not shown.

Plugins/DynamicPanels/Scripts/Helpers/PanelCursorHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private void Update()
8383
Vector2 pointerPos = activeEventData.position;
8484
if( pointerPos != prevPointerPos )
8585
{
86-
if( PanelManager.Instance.IsDraggingPanel )
86+
if( activeEventData.dragging )
8787
SetDefaultCursor();
8888
else
8989
{

Plugins/DynamicPanels/Scripts/PanelManager.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public static PanelManager Instance
2828
private List<Panel> panels = new List<Panel>( 32 );
2929

3030
private Panel draggedPanel = null;
31-
public bool IsDraggingPanel { get { return draggedPanel != null; } }
32-
3331
private AnchorZoneBase hoveredAnchorZone = null;
3432

3533
private RectTransform previewPanel = null;

0 commit comments

Comments
 (0)