leaferjs / leafer-ui

一款好用的 Canvas 引擎,革新的开发体验,用于高效绘图 、UI 交互、图形编辑。A user-friendly Canvas engine with a revolutionary development experience, for efficient drawing, UI interactions, and graphic editing.
https://www.leaferjs.com
MIT License
2.52k stars 89 forks source link

[Bug] 拖拽添加元素时App实例无法触发drop事件,而Leafer实例可以 #245

Closed cbly666 closed 1 week ago

cbly666 commented 1 week ago

image

完整代码如下: https://cloudstudio.net/a/22705321292918784?channel=share&sharetype=URL

leaferjs commented 1 week ago

收到,谢谢反馈~

leaferjs commented 1 week ago

刚调试了一下,把canvas改成div标签就可以了,App最好用div标签作为view(会自动添加两个canvas层到dom中,否则会多产生一次合并绘制): image