开发者

HowTo - Test JS Touch Events on a Mac

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜