vuxscroller在iOS13上,一停止滑动就跳到顶部/blog.csdn.net/sllailc...node_modules_vux-xscroll@3.1.12@vux-xscrollbuildcmdsimulate-scroll.js下的getScrollTop方法如下这里的路径可能不完全一样,反正是在源码库中的vux-xscrollsimulate-scroll.js文件getScrollTop:function(){vartransY=window.getComputedStyle(this.container)[transform].match(/[-\d\.*\d*]+/g);返回交易?数学.round(transY[5])===0?0:-Math.round(transY[5]):0;},解决方法:把\node_modules\_vux-xscroll@3.1.12@vux-xscroll\build\cmd\simulate下的getScrollTop方法中的正则表达式替换掉即可-scroll.js具有以下内容(/[-\d\.*\d*e\-\d]+/g)。**getScrollTop:function(){//vartransY=window.getComputedStyle(this.container)[transform].match(/[-\d\.*\d*]+/g);vartransY=window.getComputedStyle(this.container)[transform].match(/[-\d\.*\d*e\-\d]+/g);返回交易?Math.round(transY[5])===0?0:-Math.round(transY[5]):0;},
