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

总是怎么红色的提醒是什么原因 #1149

Closed
ZLJ599 opened this issue Jun 22, 2020 · 2 comments · Fixed by #1153
Closed

总是怎么红色的提醒是什么原因 #1149

ZLJ599 opened this issue Jun 22, 2020 · 2 comments · Fixed by #1153

Comments

@ZLJ599
Copy link

ZLJ599 commented Jun 22, 2020

截屏2020-06-22 下午5 33 08
这应的警告是什么原因啊

@fuzhenn
Copy link
Member

fuzhenn commented Jun 23, 2020

这是因为map接管了容器的鼠标滚轮事件,而这个事件是推荐设为passive的(不preventDefault),但地图必须要preventDefault才能用滚轮缩放地图。

chrome下只是会抛警告,请问你用的是什么浏览器?

@ZLJ599
Copy link
Author

ZLJ599 commented Jun 24, 2020

Google Chrome (Mac)
版本 83.0.4103.106(正式版本) (64 位)

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

Successfully merging a pull request may close this issue.

2 participants