<Draggable
enableUserSelectHack={false}
bounds="body"
positionOffset={{ x: '-50%', y: '-50%' }}
>
after I check the getBoundPosition function , I think node.offsetLeft does not contains css3 transform translate that positionOffset makes.
referer How do I get the position of an element after css3 translation in JavaScript?
<Draggable
enableUserSelectHack={false}
bounds="body"
positionOffset={{ x: '-50%', y: '-50%' }}
>
after I check the getBoundPosition function , I think node.offsetLeft does not contains css3 transform translate that positionOffset makes.
referer How do I get the position of an element after css3 translation in JavaScript?