Skip to content

Commit 4f127d6

Browse files
committed
Fix mousedown hit test for Nodes
1 parent 60f3902 commit 4f127d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/XTMF2.GUI/ViewModels/ICanvasElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public interface ICanvasElement : INotifyPropertyChanged
7575

7676
bool IsPointWithin(Point point)
7777
{
78-
return new Rect(X - Width / 2, Y - Height / 2, Width, Height).Contains(point);
78+
return new Rect(X, Y, Width, Height).Contains(point);
7979
}
8080

8181
}

0 commit comments

Comments
 (0)