daybrush / moveable

Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!
https://daybrush.com/moveable/
MIT License
10.15k stars 623 forks source link

Container prop in vue2 #831

Open Naama-Le opened 1 year ago

Naama-Le commented 1 year ago

Environments

Description

After reinstalling the package today, it seems like it is a must to define the container prop, as suddenly all moveable boxes jumped to the body. You didn't write this in the vue-moveable README and also in your API Documentation What is it for? what should I put in the container prop to make sure the moveable position is inside the container defined in the template?

daybrush commented 1 year ago

@Naama-Le

The container prop is not used because it is an option used internally.

The control box is not created on the body either.

https://codesandbox.io/s/vue2-moveable-draggable-7lhjot?file=/src/App.vue

Container is not used because it is an option used internally.

If not working, can I check the code you used?