VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Feature] 是否可以提供canvas绘制空白处的点击事件

Open mzhang-eric opened this issue 1 year ago • 1 comments

What problem does this feature solve?

我想要能够区分点击事件是否发生在下图B区域,比如 SELECT_CLEAR 事件触发时我想知道是点击了A区域(outside) 还是B区域(blank Area),又比如我想实现点击A外部区域隐藏右键菜单,而点击B空白区域的时候不隐藏。

但我现在似乎没有办法确定发生在B区域的鼠标点击事件。

windexport_1720403629359

What does the proposed API look like?

希望能够提供canvas绘制空白处的点击事件监听

mzhang-eric avatar Jul 08 '24 02:07 mzhang-eric

事件有抛出原始事件e吧 通过e上的target应该可以区分开的

fangsmile avatar Jul 08 '24 02:07 fangsmile