Skip to content

Commit

Permalink
Fixes binding errors and strange 2x2 pixel displayed on click (#86)
Browse files Browse the repository at this point in the history
When the property IsDragSelectByDefault is set to true and the user clicks on the zoom area, the ZoomBox is being set to empty and this breaks bindings resulting in the Canvas/Border 2x2 element to actually be rendered as an annoying random pixel in the upper left corder of the Zoom control.
  • Loading branch information
RachelTerry authored and panthernet committed Jul 23, 2017
1 parent 552a099 commit 9039250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GraphX.Controls/Controls/ZoomControl/ZoomControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ private void ZoomControl_MouseUp(object sender, MouseButtonEventArgs e)
_startedAsAreaSelection = false;

OnAreaSelected(ToContentRectangle(ZoomBox));
ZoomBox = Rect.Empty;
ZoomBox = new Rect();
}
else ZoomToInternal(ZoomBox);
break;
Expand Down

0 comments on commit 9039250

Please sign in to comment.