Unable to preventDefault inside passive event listener due to target being treat

317 阅读1分钟

在封装组件的时候 出现了这个问题

通过设置容器css属性touch-action,去除滑动时默认现象产生,但不影响事件触发

touch-action: none;

成功解决