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 d619907
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/TSMapEditor/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TSMapEditor
{
public static class Constants
{
public const string ReleaseVersion = "1.3.6";
public const string ReleaseVersion = "1.3.7";

public static int CellSizeX = 48;
public static int CellSizeY = 24;
Expand Down
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 d619907

Please sign in to comment.