daybrush / moveable

Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!

Home Page:https://daybrush.com/moveable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When multiple boxes are selected, you will find that "moveable-control-box" will create multiple boxes

allenxie888 opened this issue · comments

Environments

Description

When multiple boxes are selected, you will find that "moveable-control-box" will create multiple boxes. (As shown below)
WX20240401-164641

This problem will occur in my test version 0.47.0 or above。

If you want to handle removing it, you can do so in the changeTargets handler

let controlBox = undefined

function changeTargets(e) {
  if (controlBox !== e.currentTarget.getControlBoxElement()) {
    controlBox?.remove()
    controlBox = e.currentTarget.getControlBoxElement()
  }
}