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

控制台信息 #1

Open
Cloud-11 opened this issue Aug 22, 2017 · 3 comments
Open

控制台信息 #1

Cloud-11 opened this issue Aug 22, 2017 · 3 comments
Assignees

Comments

@Cloud-11
Copy link

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080

可以消除吗。

@lidianhao123 lidianhao123 self-assigned this Aug 22, 2017
@lidianhao123
Copy link
Member

@Clound-11 感谢对本组件的支持!
近期会抽空研究一下这个问题。目前的考虑是移除触摸事件中 preventDefault 函数的调用。

@lidianhao123
Copy link
Member

@Clound-11 发现一种通过 css 设置解决控制台警告的方式:

.wx-image-viewer .viewer-image-container {
  touch-action: none;
}

给绑定 touchstart 的 Dom 元素加上 touch-action: none; 即:当触控事件发生在元素上时,不进行任何操作。

具体参考 touch-action

@devin-yuan
Copy link

同问,控制台信息能删掉吗?

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

3 participants