【发布时间】:2012-08-06 21:16:06
【问题描述】:
我正在开发一款支持桌面和移动设备上的触摸事件的应用。 当使用类似的东西时(每 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);
这些只会在 ipad 和 iphone 上测试时触发,而不是在桌面上。由于我是在桌面上开发的,我该如何让这些事件被识别?
【问题讨论】:
标签: javascript html webkit touch-event