Open Vadimzem opened 10 years ago
I found the problem, in Chrome all condition: if (!SUPPORTS_TOUCH)... return TRUE when you using pluged mouse. In FF it return FALSE.
You need to check if touch event is undefined.
if ((!SUPPORTS_TOUCH || typeof event.touches === "undefined") This condition will solve the problem.
:+1: the SUPPORTS_TOUCH
checks could be replaced with event.touches
truthy checks.
The script does not work if the mouse is connected to any touch device (tablet, touch monitor).
This bug fires only in Chrome. In FF it's fine.