Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selectors for tablet device doesn't work on samsung tablet #197

Open
ruchika-phalke opened this issue Nov 30, 2022 · 2 comments
Open

Selectors for tablet device doesn't work on samsung tablet #197

ruchika-phalke opened this issue Nov 30, 2022 · 2 comments

Comments

@ruchika-phalke
Copy link

Different selectors like isTablet, isMobile, isPortrait, isLandscape gives incorrect value.
Device information :- Samsung Galaxy S7 Edge browser

@hosembafer
Copy link

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.

@hosembafer
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants