Possible bug on displace.reinit()
Closed this issue · 2 comments
caracal7 commented
I have set of divs with drag handle and on "window.resize" event I call "displace.reinit()" on each div.
And after that then I try to drag, drag mode not stoped after mouseup.
caracal7 commented
`
// Not working
window.onresize = () => Items.forEach(item => item._displace.reinit());
// Working
window.onresize = () => Items.forEach((Item) => {
Item._displace.destroy()
Item._displace = displace(Item.container, {
constrain: true,
handle: Item.handle
});
});
`
catc commented
I'll investigate.