From ae0f1c6f7fdaa7adbd62b8cf43b0ae601c599433 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 16 Jul 2020 12:21:51 +0200 Subject: [PATCH] Update UiObject.js --- FloatingSpace/UiObject.js | 1 + 1 file changed, 1 insertion(+) diff --git a/FloatingSpace/UiObject.js b/FloatingSpace/UiObject.js index 2e5bf0b2c..5ef146676 100644 --- a/FloatingSpace/UiObject.js +++ b/FloatingSpace/UiObject.js @@ -646,6 +646,7 @@ function newUiObject () { if (isDragging !== true) { return } if (thisObject.payload.floatingObject.isFrozen === true) { return } if (rightDragging === false) { return } + if (thisObject.payload === undefined) { return } if (thisObject.payload.referenceParent === undefined) { return } let distanceToReferenceParent = Math.sqrt(Math.pow(thisObject.payload.position.x - thisObject.payload.referenceParent.payload.position.x, 2) + Math.pow(thisObject.payload.position.y - thisObject.payload.referenceParent.payload.position.y, 2))