vue mobile click event failure problem

vue mobile click event failure problem

Today when I was writing a project, I encountered a terrible and annoying problem. My click event suddenly stopped working. But because I was writing a mobile project, I switched the browser running environment to the PC. I gave it a try and found that this weird click time is working again. How to do it? Get a hammer and use Baidu as fiercely as a tiger. My mood is as follows.

After half an hour of desperate struggle, I suddenly remembered that I used a scrolling plug-in better-scroll. Could it be his problem? Let’s see what the official documentation says. I found this problem
Insert image description here
and found it. Then Just go to the code, oh

this.scroll = new BetterScroll(this.$refs.wrapper, {
    
    click: true})

Guess you like

Origin blog.csdn.net/m0_56026872/article/details/118763167