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

[New Feature] 如果子元素可拖动会冲突 #1336

Open
s97712 opened this issue Apr 3, 2023 · 0 comments
Open

[New Feature] 如果子元素可拖动会冲突 #1336

s97712 opened this issue Apr 3, 2023 · 0 comments

Comments

@s97712
Copy link

s97712 commented Apr 3, 2023

What problem does this feature solve?

拖动子元素时画布会跟着一起拖动

screenity.6.webm

建议增加一个选项,判断 ev.target === ev.currentTarget 成立时才允许拖动,避免和子元素冲突

What does the proposed API look like?

增加选项控制什么时候允许滚动

allowScroll: (ev: MouseEvent)=>boolean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant