You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is related to the issue solved by PR #27791.
When enabling DragControls after 162, the Drag Controls onDrag handlers do not return the drag object inside the e.object. The drag object is one passed into the DragControls ctor, but when the events fire they are returning the parent object of that drag object.
Reproduction steps
Create a scene and add 2 group objects to the root of the scene
Enable just one of them in the DragControls ctor
View the onDrag event from the DragControls and see that it passses the object's parent as the "item being dragged" in the event.
What we see is the expected behavior when enabling on transformGroup.
Objects organized in groups usually are logically connected so it makes sense when transformGroup is set to true, the entire group is affected. I understand there is the use case if just a single object of the hierarchy is added to the controls and transformGroup is set to true. In this case, users might expect the controls do not affect the hierarchy. But I'm unsure if this is right considering that enabling transformGroupshould transform groups. That's the hole point of the property.
Nevertheless, we could basically check if the detected group is part of the objects array maintained by DragControls but that would potentially break other use cases which rely on the current behavior. As long as no other devs report the issue, let's keep the current default.
Description
I think this is related to the issue solved by PR #27791.
When enabling DragControls after 162, the Drag Controls onDrag handlers do not return the drag object inside the e.object. The drag object is one passed into the DragControls ctor, but when the events fire they are returning the parent object of that drag object.
Reproduction steps
Code
// code goes here
Live example
Screenshots
No response
Version
0.162
Device
Desktop
Browser
Chrome
OS
MacOS
The text was updated successfully, but these errors were encountered: