I’m developing an app that would support touch events on desktop and mobile devices.
when using something like (per https://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariWebContent/HandlingEvents/HandlingEvents.html )
element.addEventListener("touchstart", touchStart, false);
element.addEventListener("touchmove", touchMove, false);
element.addEventListener("touchend", touchEnd, false);
element.addEventListener("touchcancel", touchCancel, false);
these only fire when testing on ipad and iphone, not on desktop. Since I’m developing on desktop, how could I make so these events are recognized?
You could view your website in iOS simulator, that is included in XCode on MacOs.
Hope it helps.