Skip to content

Commit

Permalink
Merge pull request #720 from ramaces/patch-1
Browse files Browse the repository at this point in the history
fix windows touchscreen tablets
  • Loading branch information
ain authored Apr 10, 2024
2 parents f9d134c + a10ea01 commit 360ef63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detector.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class Detector {
return 'android';
// maxTouchPoints is the only effective method to detect iPad iOS 13+
// FMI https://developer.apple.com/forums/thread/119186
} else if ((!window.MSStream && !/X11|Linux/i.test(userAgent) && maxTouchPoints && maxTouchPoints > 0) || /iPhone|iPad|iPod/i.test(userAgent)) {
} else if ((!window.MSStream && !/X11|Linux|Windows/i.test(userAgent) && maxTouchPoints && maxTouchPoints > 0) || /iPhone|iPad|iPod/i.test(userAgent)) {
return 'ios';
}
}
Expand Down

0 comments on commit 360ef63

Please sign in to comment.