Commit 526e8882 authored by Colin Kiama's avatar Colin Kiama

Fixed bug with rectangle dragging still happening after interaction mode changes

parent f93c553d
......@@ -51,6 +51,7 @@ namespace UWPVectorGraphicsToolExample
private void Instance_PointerDraggingEnded(object sender, EventArgs e)
{
isPointerBeingDragged = false;
VirtualCanvas.Invalidate();
}
private void Instance_PointerMovedWithValidPoints(object sender, EventArgs e)
......@@ -217,7 +218,6 @@ namespace UWPVectorGraphicsToolExample
case "select":
// Stop listening for mouse events
// Clear all previous data you had on points
isInRectangleMode = false;
UnsubsribeToPointerEvents();
MouseEventService.Instance.ClearMouseEventPoints();
break;
......@@ -225,7 +225,6 @@ namespace UWPVectorGraphicsToolExample
// Start listening for mouse events
// Read clicks, drags and releases
// to draw rectangles
isInRectangleMode = true;
SubscribeToPointerEvents();
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment