videoul.addEventListener("hold",function(){
mui(".videoul").on('swipeup',".videoul",function(){
console.log("上滑")
var tops = parseInt(videoul.style.marginTop)-100
// console.log(tops)
videoul.style.marginTop = tops+'vh'
});
mui(".videoul").on("swipedown",".videoul",function(){
console.log("下滑")
var tops = parseInt(videoul.style.marginTop)+100
// console.log(tops)
videoul.style.marginTop = tops+'vh'
})
swipeup和swipedown同时会执行,请问各位大佬怎么解决这个问题
0 个回复