I have a problem, in chrome it runs well, but it won't fire in firefox
function normalizeEvent(e){
if(e.originalEvent instanceof TouchList){
do somethings
}
}
and here is message error: ReferenceError: TouchEvent is not defined
if(e.originalEvent instanceof TouchEvent){}
To get this work in FF, just add window.TouchEvent
condition (is it defined):
if(window.TouchEvent && e.originalEvent instanceof TouchEvent){}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With