This commit is contained in:
Luis Fernando Molina committed 2020-02-08 12:35:29 +01:00
1 parent 9a1ee54857
commit 59620fac40
1 file changed
+1 -1
+1 -1
View File
@@ -330,7 +330,7 @@ function newFloatingObject () {
thisObject.payload.distance = distanceToParent
if (distanceToParent > 2000) { return } // this is introduced to avoid edges cases when importing workspaces.
if (distanceToParent > 2000 || thisObject.isPinned === true) { return } // this is introduced to avoid edges cases when importing workspaces.
newPosition = {
x: parent.payload.position.x + distanceToParent * Math.cos(toRadians(thisObject.payload.angle)),