Skip to content

Commit

Permalink
work for the #8604 (#8614)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov authored Jul 26, 2024
1 parent fc9f88f commit 5a56107
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function _setIsTouch(val: boolean): void {
export type MatchMediaMethod = ((query:string) => {matches:boolean} | null) | null;
export function detectMouseSupport(matchMedia: MatchMediaMethod):boolean {
if (!matchMedia) return false;
if (IsMobile) return false;

const pointerQuery = matchMedia("(pointer:fine)");
const hoverQuery = matchMedia("(any-hover:hover)");
Expand Down

0 comments on commit 5a56107

Please sign in to comment.