Hacker News new | ask | show | jobs
by LeoNatan25 1114 days ago
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?
2 comments

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?