Skip to content

Commit

Permalink
[@mantine/hook] use-os: Fix incorrect iPadOS detection (#6535)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenzo-Wada authored Aug 6, 2024
1 parent e4041cf commit 6972146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@mantine/hooks/src/use-os/use-os.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function getOS(): OS {

const { userAgent } = window.navigator;

if (isIOS(userAgent)) {
if (isIOS(userAgent) || (isMacOS(userAgent) && 'ontouchend' in document)) {
return 'ios';
}
if (isMacOS(userAgent)) {
Expand Down

0 comments on commit 6972146

Please sign in to comment.