When drag end the border area or controls, the roundEnd event is called.
When drag or double click the border area or controls, the roundGroup event is called.
import Moveable from "@moveable-next/vanilla";
const moveable = new Moveable(document.body, {
targets: [target1, target2, target3],
roundable: true,
});
moveable.on("roundGroupStart", e => {
console.log(e.targets);
}).on("roundGroup", e => {
e.events.forEach(ev => {
ev.target.style.cssText += ev.cssText;
});
}).on("roundGroupEnd", e => {
console.log(e);
});
When drag end the border area or controls, the roundGroupEnd event is called.
import Moveable from "@moveable-next/vanilla";
const moveable = new Moveable(document.body, {
targets: [target1, target2, target3],
roundable: true,
});
moveable.on("roundGroupStart", e => {
console.log(e.targets);
}).on("roundGroup", e => {
e.events.forEach(ev => {
ev.target.style.cssText += ev.cssText;
});
}).on("roundGroupEnd", e => {
console.log(e);
});
When drag start the clip area or controls, the roundGroupStart event is called.
import Moveable from "@moveable-next/vanilla";
const moveable = new Moveable(document.body, {
targets: [target1, target2, target3],
roundable: true,
});
moveable.on("roundGroupStart", e => {
console.log(e.targets);
}).on("roundGroup", e => {
e.events.forEach(ev => {
ev.target.style.cssText += ev.cssText;
});
}).on("roundGroupEnd", e => {
console.log(e);
});
When drag start the clip area or controls, the roundStart event is called.
When drag or double click the border area or controls, the
roundevent is called.