dasensen
dasensen
  • 发布:2020-12-23 14:24
  • 更新:2020-12-23 14:24
  • 阅读:736

mui的swipeup和swipedown的事件同时执行

分类:MUI
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同时会执行,请问各位大佬怎么解决这个问题

2020-12-23 14:24 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复