canvas的disable-scroll有什么用的?

发布于 6 年前作者 yangyan11616 次浏览最后编辑 6 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

为什么绑定了bindtouchstart, bindtouchmove, bindtouchend事件后,在canvas上无法滚动页面?disable-scroll="false"这样没用吗?

  • 预期表现

- 问题

此选项说明为:“当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新”,为true时禁止滚动,为false时不是页面会滚动吗?

1 回复
ping09
ping091 楼4 年前

这个要这样写哈