Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mzhang-eric opened this issue Jul 8, 2024 · 1 comment
Open
Assignees
Labels
feature 新需求

Comments

@mzhang-eric
Copy link

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 mzhang-eric added the feature 新需求 label Jul 8, 2024
@fangsmile
Copy link
Contributor

fangsmile commented Jul 8, 2024

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

@fangsmile fangsmile self-assigned this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 新需求
Projects
None yet
Development

No branches or pull requests

2 participants