From f464902399e844ea9c8af475e7c0171cfa5fd3dc Mon Sep 17 00:00:00 2001 From: kenkeiras Date: Sat, 20 Jan 2018 22:09:25 +0100 Subject: [PATCH] Allow moving away though the top left corner. --- .../main/java/com/codigoparallevar/minicards/CanvasView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/codigoparallevar/minicards/CanvasView.java b/app/src/main/java/com/codigoparallevar/minicards/CanvasView.java index 0afa2e6..1119bca 100644 --- a/app/src/main/java/com/codigoparallevar/minicards/CanvasView.java +++ b/app/src/main/java/com/codigoparallevar/minicards/CanvasView.java @@ -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 {