From 0ff01702c3c0704e09ecf88e4240a273f2546b30 Mon Sep 17 00:00:00 2001
From: joni <johnfshaughnessy@gmail.com>
Date: Mon, 23 Jul 2018 17:25:36 -0700
Subject: [PATCH] Fix bug where you can't rotate objects after double grab.

---
 src/components/sticky-object.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/components/sticky-object.js b/src/components/sticky-object.js
index b79fa8017..323eddd18 100644
--- a/src/components/sticky-object.js
+++ b/src/components/sticky-object.js
@@ -46,10 +46,11 @@ AFRAME.registerComponent("sticky-object", {
     }
   },
 
-  _onRelease() {
+  _onRelease(evt) {
     if (
       this.data.autoLockOnRelease &&
-      this.el.body.velocity.lengthSquared() < this.data.autoLockSpeedLimit * this.data.autoLockSpeedLimit
+      this.el.body.velocity.lengthSquared() < this.data.autoLockSpeedLimit * this.data.autoLockSpeedLimit &&
+      evt.detail.target.components.grabbable.grabbers.length === 0
     ) {
       this.setLocked(true);
     }
-- 
GitLab