开发者

HowTo - Test JS Touch Events on a Mac

开发者 https://www.devze.com 2023-01-11 02:21 出处:网络
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 te

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

精彩评论

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