Ant-design-mobile: PullToRefresh touchMove代码导致控制台频繁报错

Created on 22 Apr 2019  ·  1Comment  ·  Source: ant-design/ant-design-mobile

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://mobile.ant.design/kitchen-sink/components/pull-to-refresh?lang=zh-CN#pull-to-refresh-demo-0

Steps to reproduce

1、list先向上移动一点,松开左键
2、鼠标拖住list,在模拟器下方边缘上下拖动

What is expected?

没有错误

What is actually happening?

控制台就会报如下错误,[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

| Environment | Info |
|---|---|
| antd | 2.2.6 |
| React | react |
| System | macOS 10.14 |
| Browser | chrome 73.0.3683.103 |


建议:在rmc-pull-to-refresh组件的onTouchMove事件中,在e.preventDefault();这段之前增加if (e.cancelable) {e.preventDefault();}判断

Most helpful comment

I have the same problem when open drawer.

>All comments

I have the same problem when open drawer.

Was this page helpful?
0 / 5 - 0 ratings