Login Register

drag-and-drop

dnd.constrainedMoveable question - is it possible to get the moveable item to 'follow' the mouse pointer?

Hi,

I'm hoping someone can help. I have been using constrainedMoveable and have a page with a container div and a smaller div inside. At the moment, the user is able to drag the smaller div around inside the constraints of the parent container and this works very well.

However, I'd been trying to get the smaller div to track with the pointer as soon as the user moves the mouse into the containing div - in other words: as soon as they move into the containing div, I'd like the smaller div to follow the pointer around.

Syndicate content