我知道手动设置,我说的是用javascript设置
UC的“左右滑屏前进后退”功能
你在设置里面是可以找到的啊。
你在设置里面是可以找到的啊。
温馨提示:答案为网友推荐,仅供参考
第1个回答 2018-11-20
楼主解决了吗,我也遇到了这个问题,不知道怎么搞啊,网上关于这个的问答不多啊
第2个回答 2019-06-02
var xStart,xEnd,yStart,yEnd;
document.addEventListener('touchmove',function(evt){
xEnd=evt.touches[0].pageX;
yEnd=evt.touches[0].pageY;
Math.abs(xStart-xEnd)> Math.abs(yStart-yEnd)&&
evt.preventDefault();
},false);
document.addEventListener("touchstart",function(evt){
xStart=evt.touches[0].pageX;
yStart=evt.touches[0].pageY;
},false);
document.addEventListener('touchmove',function(evt){
xEnd=evt.touches[0].pageX;
yEnd=evt.touches[0].pageY;
Math.abs(xStart-xEnd)> Math.abs(yStart-yEnd)&&
evt.preventDefault();
},false);
document.addEventListener("touchstart",function(evt){
xStart=evt.touches[0].pageX;
yStart=evt.touches[0].pageY;
},false);