When writing a project recently, in order to solve the problem that the mobile browser usually has a delay of about 300ms when sending click events, this is because the double click of the mobile terminal will scale, resulting in the delay of click judgment. Therefore, the fastlick library is introduced. It is a simple and easy-to-use library, which eliminates the delay between the physical click on the mobile browser and triggering a click event. The purpose is to make your application feel no delay and respond more sensitively without interfering with your current logic.
However, in the process of use, it will report an error if you double-click anywhere on the page. Even if it does not affect normal use, I can’t see it, so I’ll eliminate it.
So Baidu found a very simple way to introduce the global style touch action: pan-y;
*{
touch-action: pan-y;
}
Put it in the global CSS and try it. Sure enough, no error will be reported when clicking (*^▽^*)
Read More:
- Solve the problem of Nacos double click flash back
- Invalid operands to binary expression (‘double’ and ‘double’)
- Click the button to use in the react project window.open Methods open a new page and click the data again
- Error reporting – the project directly introduces the error reporting and solution of. SCSS file
- Android listview entry button click state chaos solution
- Optimization and upgrade solution for one click deployment without Jenkins under Linux
- The solution of “double quotation marks become escape characters” in Java parsing JSON
- Win10 installation git click git bash flash back problem solution
- Process finished with exit code 0 error reporting solution
- Redhat8 make nginx error reporting solution
- Introduce vuex error reporting solution
- Python installation pysimplegui error reporting solution
- Maven package error reporting java.lang.stackoverflowerror solution
- about jQuery.js The solution to always reporting errors
- Solution to error reporting in Java @ override
- Solution of Java resources error reporting
- No route info solution for rocketmq error reporting
- Solution of error reporting in PIP installation of iPhone
- Solution of node canvas error reporting in MacOS M1 installation
- Solution of running error reporting attributeerror: ‘rectangle’ object has no property ‘normalized’