react-wx-images-viewer icon indicating copy to clipboard operation
react-wx-images-viewer copied to clipboard

控制台信息

Open Cloud-11 opened this issue 7 years ago • 3 comments

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

可以消除吗。

Cloud-11 avatar Aug 22 '17 08:08 Cloud-11

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

lidianhao123 avatar Aug 22 '17 09:08 lidianhao123

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

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

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

具体参考 touch-action

lidianhao123 avatar Mar 17 '18 16:03 lidianhao123

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

devin-yuan avatar Aug 10 '18 07:08 devin-yuan