Fix drawer open bug in iOS Safari.
This commit is contained in:
1 parent
86a1ae785c
commit
70d445d921
3 files changed
+24
-11
No files matched your search
+9
-1
@@ -76,4 +76,12 @@ export function errorToConsole(e: Error, func?: CallableFunction): void {
|
||||
} else {
|
||||
func(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the device supports hovering.
|
||||
* @returns `true` if the device supports hovering, `false` otherwise.
|
||||
*/
|
||||
export const isHoverableDevice = (): boolean => window.matchMedia(
|
||||
'(hover: hover) and (pointer: fine)',
|
||||
).matches;
|
||||
Reference in new issue
Block a user