Allow moving away though the top left corner.
This commit is contained in:
parent
f821f49b94
commit
f464902399
@ -306,8 +306,8 @@ class CanvasView extends View implements PartGrid {
|
||||
int yMovement = _mouseDownPoint.item2 - yInScreen;
|
||||
|
||||
_viewOrigin = new Tuple2(
|
||||
Math.max(_viewOrigin.item1 + xMovement, 0),
|
||||
Math.max(_viewOrigin.item2 + yMovement, 0));
|
||||
_viewOrigin.item1 + xMovement,
|
||||
_viewOrigin.item2 + yMovement);
|
||||
_mouseDownPoint = new Tuple2(xInScreen, yInScreen);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user