Ant-design-mobile: 在入口页index.html上添加官网的meta配置和引入 FastClick后,Carousel的点击需要点两次才能触发!

Created on 25 Jun 2018  ·  9Comments  ·  Source: ant-design/ant-design-mobile

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

Version

2.2.0

Environment

IOS11.4,chrome最新版

Reproduction link

https://mobile.ant.design/components/carousel/

Steps to reproduce

新建一个DVA项目,在入口页index.html配置好官网上的代码,引入Carousel组件,设置跳转页面,点击一次并不会跳转,需要再点一次才会跳转

What is expected?

Carousel点击一次就能跳转了!

What is actually happening?

Carousel点击两次才能跳转!

Need Reproduce

Most helpful comment

最里层元素添加needsclick的class解决

All 9 comments

Translation of this issue:


After adding the official meta configuration on the portal page index.html and introducing FastClick, Carousel's click needs to be triggered twice!

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

Version

2.2.0

Environment

IOS11.4, chrome latest version

Reproduction link

https://mobile.ant.design/components/carousel/

Steps to reproduce

Create a new DVA project, configure the code on the portal page index.html, introduce the Carousel component, set the jump page, click once and will not jump, you need to click again to jump

What is expected?

Carousel clicks once to jump!

What is actually happening?

Carousel click twice to jump!

Hello @hst-Sunday. Please provide a re-producible demo: https://codepen.io/pen?template=LWpaKe&editors=0010

I have the same problem

@hst-Sunday your site is unavailable.

最里层元素添加needsclick的class解决

@ziluo @likezero

me too, I have the same problem +1

Ios9.1 and chrom32 for android canceled the 300ms click delay, why use fastclick?

today,
I made a demo and wanted to reproduce it, but no previous a problem.

Was this page helpful?
0 / 5 - 0 ratings