I'm workin开发者_运维技巧g to build a web app that uses the WebKit Touch Events JS API. How can I QA this app on my mac with touch events, and not be forced to swap between developing on a mac and testing on an iPhone. Ideas?
Did you try the iPhone Simulator's built-in Safari app?
Use Google Chrome Canary's developer tool should be working:
Open the Emulation panel in the DevTools. Enable "Emulate touch screen" in the Sensors pane. With the Device pane selected, select "Google Nexus S". Click Emulate.
see official document here: https://developers.google.com/chrome-developer-tools/docs/mobile-emulation?hl=zh-cn#emulate-touch-events
精彩评论