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'm able to set the initial Draggable child component's position using a style absolute positioning. The Draggable component will then make translate transforms based off this initial position. The issue with this approach is that I'm unable to store the updated position directly.
Would it be possible to add a start prop to the Draggable component to set the initial position? I've attempted to set the child transform style on first render, but the Draggable component is not aware of this.
This is a problem with the callbacks, no? The ui.position property reflects relative position, not absolute. You can simply add the initial absolute position to the relative position and you should get what you want.
I'm able to set the initial
Draggable
child component's position using a styleabsolute
positioning. TheDraggable
component will then make translate transforms based off this initial position. The issue with this approach is that I'm unable to store the updated position directly.Would it be possible to add a
start
prop to theDraggable
component to set the initial position? I've attempted to set the childtransform
style on first render, but theDraggable
component is not aware of this.Here's a link to how I'm currently fleshing out a window system using your component.
https://github.com/nirrius/nirrius/blob/master/app/common/pane/index.jsx#L55-L69
http://nirri.us/~teffen
Thank you.
The text was updated successfully, but these errors were encountered: