first step:
Start adding the handleTarget function method:
The code copy is as follows: var theTarget = e.target;
if (theTarget != null && theTarget.tagName == 'SELECT') {
return false;
}
Step 2:
At the touchStart function, i.e., _start(), you must add:
Copy the code code as follows: if (e.target.tagName != "SELECT")
{
e.preventDefault();
e.stopPropagation();
}
In fact, it’s just two steps, it’s quite simple, I hope it will be helpful to everyone.