Skip to content

Commit

Permalink
Fix bug where CursorAction.LeftUpOnMouseMove was never called
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Dec 18, 2024
1 parent 8fc5ab5 commit 9f97952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TSMapEditor/UI/MapUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,11 +492,11 @@ public override void OnMouseMove()
{
base.OnMouseMove();

if (CursorAction != null && leftPressedDownOnControl)
if (CursorAction != null)
{
if (Cursor.LeftDown)
{
if (tileUnderCursor != null)
if (leftPressedDownOnControl && tileUnderCursor != null)
{
if (lastTileUnderCursor != tileUnderCursor || !CursorAction.OnlyUniqueCellEvents)
CursorAction.LeftDown(tileUnderCursor.CoordsToPoint());
Expand Down

0 comments on commit 9f97952

Please sign in to comment.