Closed imbrish closed 6 years ago
mousedown
and mousemove
are not events defined by this library? Furthermore, my test through jsFiddle doesn't seem to replicate the issue:
I modified your example so that error occurs. I didn't mention originally that the element, for which we trigger the mousemove
event, has to have some touch handler registered, for example swipe
.
https://jsfiddle.net/ydftayb9/4/
Updated the top post as well.
The error is obviously caused by e.originalEvent
being null for fake events. Returning from the handler when originalEvent
is missing should be good enough solution.
If you cannot fix this now I could start a pull request, but It'll take me some time to investigate the code.
Executing the following code:
Causes an error:
Easiest to try by opening the developer console (ctrl+shift+i on Chrome) on a page with
jquery.mobile-events.js
loaded and using the above code.Example of the error can be found in this fiddle.
Happens also for
mousemove
event, and possibly other.