Open ruchika-phalke opened 2 years ago
Same for iPad Pro/Air
I did some research and discovered that there is a new class of "desktop class" browsers and they don't want to be categorized as tablets and identify themselves as desktop devices and it becomes very difficult to distinguish them.
To handle this, we can use navigator.maxTouchPointers
as an additional criterion to detect tablets.
@duskload Hey, can you help here? I know it's a bit undefined situation with "desktop class" stuff, but maybe you can group all the related issues and pin them on the Issues tab? And maybe you have some thoughts about this?
Same for iPad Pro/Air
I did some research and discovered that there is a new class of "desktop class" browsers and they don't want to be categorized as tablets and identify themselves as desktop devices and it becomes very difficult to distinguish them.
To handle this, we can use
navigator.maxTouchPointers
as an additional criterion to detect tablets.
That would work, but for me, my tablet and my phone give the same maxTouchPointers so it ends up being the same problem than isTablet not working
Different selectors like isTablet, isMobile, isPortrait, isLandscape gives incorrect value. Device information :- Samsung Galaxy S7 Edge browser