From 10ec007ff2816014bba34195db226bcca6c2d9d7 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 10 Feb 2020 18:43:54 +0100 Subject: [PATCH] Bug Fixed --- Frame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frame.js b/Frame.js index 46fb4e32c..fc38fea12 100644 --- a/Frame.js +++ b/Frame.js @@ -195,7 +195,7 @@ function newFrame () { } if (thisObject.type === 'Rectangle') { - if (checkPoint.x < 0 + padding || checkPoint.y < 0 + padding || checkPoint.x > thisObject.width + padding || checkPoint.y > thisObject.height + padding) { + if (checkPoint.x < 0 + padding || checkPoint.y < 0 + padding || checkPoint.x > thisObject.width - padding || checkPoint.y > thisObject.height - padding) { return false } else { return true