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

图片查看器蒙层上下滑动后出现的问题

Open zhuzhu-jane opened this issue 6 years ago • 0 comments

在图片查看器的蒙层上下滑动后,退出查看器,界面会相应的上下滑动到别的地方去。 猜测是 touch 相关事件继续传播了,有使用 e.preventDefault 吗?

还是很感谢大大写的组件哈!我现在临时的解决办法是,在打开图片查看器先 mark 下当前 document 的 scrollTop,关闭后再重新设置当前文档的 scrollTop!

希望大大能从根源解决这个问题!

zhuzhu-jane avatar Aug 08 '19 03:08 zhuzhu-jane