public override void LeftButtonEndDrag(Pane pane, PointF location, PointF locationStart, float pixelSize, ref bool displayUpdateNeeded) { Debug.Assert(pane == Pane.Map); DragTo(location); RectangleF rect = currentObj.GetHighlightBounds(); if (rect.Height < 1 || rect.Width < 1) { // Too small. Use the click action. LeftButtonClick(pane, location, pixelSize, ref displayUpdateNeeded); } else { CreateImageSpecial(rect); displayUpdateNeeded = true; } }