I have implemented two types of right-click menus on one page. When the left mouse clicks on a blank space, the right-click menu is not hidden. So, Google found a way to change the left mouse click event to:
The code copy is as follows:
<span style="font-size:24px;">$(document).click( function () {
}</span>
Change to
The code copy is as follows:
<span style="font-size:24px;">$(document).on('click touchstart', function () {
}</span>
Problem solved.