Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I changed the user agent of the Mac Safari to be that of iOS, and changed the window size to be in portrait, yet it still does knows it’s not a mobile device. How does it know?


I checked the slide.js and it uses `navigator["maxTouchPoints"]`.

Also in the code: if you want to see all the levels without touch, add ?debug=1 to the URL and use the spacebar to advance.


Available browser APIs?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: