Skip to content

Commit

Permalink
Fix regression of world space drag bug #3748 (#4937)
Browse files Browse the repository at this point in the history
* Screen to Local gives wrong values if parent is scaled

* 0 out the Z translation and assume that the element cannot be dragged in the local Z axis

Co-authored-by: Steven Yau <syau@snapchat.com>
  • Loading branch information
yaustar and steveny-sc committed Dec 21, 2022
1 parent 5b812df commit fad0365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/components/element/element-drag-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class ElementDragHelper extends EventHandler {

dragScale.x = 1 / dragScale.x;
dragScale.y = 1 / dragScale.y;
dragScale.z = 1 / dragScale.z;
dragScale.z = 0;
}

/**
Expand Down

0 comments on commit fad0365

Please sign in to comment.