Skip to content

Commit d89340f

Browse files
committed
check if mobile and iOS instead of mobilesafari
1 parent ad31af5 commit d89340f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/src/pages/Settings.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Drawer, DrawerContent, DrawerTrigger } from "@/components/ui/drawer";
2020
import { Button } from "@/components/ui/button";
2121
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
2222
import useOptimisticState from "@/hooks/use-optimistic-state";
23-
import { isMobile, isMobileSafari } from "react-device-detect";
23+
import { isIOS, isMobile } from "react-device-detect";
2424
import { FaVideo } from "react-icons/fa";
2525
import { CameraConfig, FrigateConfig } from "@/types/frigateConfig";
2626
import useSWR from "swr";
@@ -152,7 +152,8 @@ export default function Settings() {
152152
);
153153
if (element instanceof HTMLElement) {
154154
scrollIntoView(element, {
155-
behavior: isMobileSafari && !isPWA && isInIframe ? "auto" : "smooth",
155+
behavior:
156+
isMobile && isIOS && !isPWA && isInIframe ? "auto" : "smooth",
156157
inline: "start",
157158
});
158159
}

0 commit comments

Comments
 (0)