pageview怎么禁止触摸滚动

我用上面的代码并没有达到效果,而且报错。我想要禁止掉pageview的滚动事件,由我的代码来控制翻页,应该怎么写?

应该是 pageView.node.off 吧?

关闭水平滚动的话 this.pageview. horizontal = false;
垂直同理.

  this.target.node.off(cc.Node.EventType.TOUCH_START,  this.target._onTouchBegan,  this.target, true);
    this.target.node.off(cc.Node.EventType.TOUCH_MOVE,  this.target._onTouchMoved,  this.target, true);
    this.target.node.off(cc.Node.EventType.TOUCH_END,  this.target._onTouchEnded,  this.target, true);
    this.target.node.off(cc.Node.EventType.TOUCH_CANCEL,  this.target._onTouchCancelled,  this.target, true);

这样写还是不好用 差在哪里呢?

这些代码你写在什么位置了

onLoad之后

this.node.on('touchmove', (event) => this.node.pauseSystemEvents(true))
试了off掉move的监听发现怎么搞都没用,于是就极端点,之间pause了事件监听。