We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f1c0d8 + 1928671 commit 77cd6b3Copy full SHA for 77cd6b3
1 file changed
SharpMap.UI/Forms/MapBox.cs
@@ -2256,10 +2256,17 @@ protected override void OnMouseUp(MouseEventArgs e)
2256
{
2257
if (_rectangle.Width > 0 && _rectangle.Height > 0)
2258
2259
+ var zoomWindowStartPoint = _dragStartPoint;
2260
+ var zoomWindowEndPoint = new PointF(e.X, e.Y);
2261
+
2262
Coordinate lowerLeft;
2263
Coordinate upperRight;
- GetBounds(_map.ImageToWorld(_dragStartPoint), _map.ImageToWorld(_dragEndPoint),
- out lowerLeft, out upperRight);
2264
+ GetBounds(
2265
+ _map.ImageToWorld(zoomWindowStartPoint),
2266
+ _map.ImageToWorld(zoomWindowEndPoint),
2267
+ out lowerLeft,
2268
+ out upperRight);
2269
2270
_dragEndPoint.X = 0;
2271
_dragEndPoint.Y = 0;
2272
0 commit comments