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