leafer-ui icon indicating copy to clipboard operation
leafer-ui copied to clipboard

Box里面的元素比自己大时,且 Box 有旋转,会导致拾取元素不正常

Open mozbia opened this issue 2 months ago • 1 comments

https://github.com/user-attachments/assets/cdd83a7c-ad40-42d6-aec6-e610427c01fd

leafer 最新版 代码:

import { App, Rect, Box } from 'leafer-ui'

const leafer = new App({ view: window, editor: { middlePoint: {} } })

const rect = new Rect({ fill: '#32cd79', width: 200, height: 200,

})

// 运行后, 手动旋转 box, 再拾取box , 不正常,鼠标并没有停在 box 上 也能拾取 const box = new Box({ width: 100, height: 100, fill:'red', overflow:'hide', children: [rect] , editable: true, hitFill:'pixel'

})

leafer.tree.add(box)

mozbia avatar Oct 22 '25 09:10 mozbia

收到,谢谢反馈~

leaferjs avatar Oct 22 '25 10:10 leaferjs