Closed todo[bot] closed 4 years ago
class: 'element-on-edit-canvas
的原因在右击画布上的时候(编辑模式),会显示右键菜单,如果右击的是画布上的某个元素(这一部分的判断就是通过 e.target.classList.contains('element-on-edit-canvas')
来实现的
element-on-edit-canvas
class非画布
或 画布上元素之间的空白区域
右击,也是不会出现
右键菜单的element-with-context-menu
会更好理解
https://github.com/ly525/luban-h5/blob/eecd65504f53e3acb1c953c7aa4dcfce906364a8/front-end/h5/src/components/core/editor/canvas/edit.js#L24-L29
This issue was generated by todo based on a
TODO
comment in eecd65504f53e3acb1c953c7aa4dcfce906364a8. It's been assigned to @ly525 because they committed the code.