Fix drawer open bug in iOS Safari.
This commit is contained in:
+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