Because of touch-action: none; get mescroll

Recently, I was helping a friend make a loan H5 application. There are pages that need to be refreshed by pulling up and down. Clicking on each item can also enter the details. Because the SUI Mobile framework is used, the jump to the a tag is unsuccessful, and the Google Chrome debugger prints the following warning: Unable to preventDefault inside passive event listener due to target being treated as passive? . The answer given online is to add * { touch-action: none; } . Doing this can indeed remove the above warning and click to jump, it seems that everything is OK.
After I got home from get off work, I was lying in bed and it was fine, so I opened it with my mobile phone and found that the page could not be swiped. Android phones can't swipe, Apple phones are fine, browsers are fine.
The next day was Sunday, and I didn’t do it for one day. I went to work on the third day. I read SUI’s documentation, Baidu, and various attempts. Finally, it was after 7 o’clock in the evening that I found the problem.
I thought it was the problem of the SUI's pull-up and pull-down plug-ins and the SUI slider. Later, the pull-up and pull-down plug-ins were changed to MUI and mescroll (mescroll is the best pull-up plug-in I found on the mobile phone); the problem has not been solved. Finally think about that css property * { touch-action: none; } that I added at the end of the day . I added it globally, but there was only a problem with one page that day. After adding it, there was no problem with clicking on that page, but all the pages on Android phones could not slide. Later, after removing this css property, everything is OK, and I also know a lot of up and down plugins, mescroll . MUII don't want to say more about this. I used this to make a few apps two years ago, and I have been paying attention to this framework. There are still a lot of problems. It is OK to do some small applications, but it is not good for large applications or hardware related. It is recommended to use this.
Because of a * { touch-action: none; } , I was depressed for a day. I went downstairs to watch "Operation Red Sea" during work that afternoon, hehe, don't tell my boss.
In February, I didn't write a blog for a whole month. Miscellaneous company affairs, personal affairs, Chinese New Year...
Yesterday, the company left a few colleagues, and the boss wanted to reduce the number to 10 people, and everyone else had to leave. I didn't plan to leave.
After working for a few years, I feel that the platform is really important (I am currently in a small company), but personal learning is more important.
Learn a little bit every day and your life will be better.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325505026&siteId=291194637