Mint-ui in Loadmore (pull-up load drop-down refresh) component sliding in iOS triggers a resolution of click events

Source: Internet
Author: User

Bug Description:

Mint-ui Loadmore (Pull-up load drop-down refresh) component in the case of using Fastclick

, swiping in an iOS device triggers a click event;

Workaround:

I was introduced on demand, go to the project to find Loadmore under the Index.js, all introduced to find mint under Mint-ui.common.js

The path is as follows: your project name/node_modules\mint-ui\lib\loadmore\index.js

Search Handletouchend, remember to write the event in

handletouchend:function handletouchend (event) {...} 

Then add the red words I marked in the down and up two events!

if (this.direction = = = ' Down ' && this.getscrolltop (this.scrolleventtarget) = = = 0 && this.translate > 0 ) {Event.preventdefault ();event.stoppropagation ();... if (this.direction = = = ' Up ' && this.bottomreached && this.translate < 0) {Event.preventdefault ();event.stoppropagation ();... Troubled for a long time finally fix, also encounter this problem of small partners can follow my method to do!!

Mint-ui in Loadmore (pull-up load drop-down refresh) component sliding in iOS triggers a resolution of click events

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.