diff --git a/src/video/components/popouts/PopoutProviderAction.tsx b/src/video/components/popouts/PopoutProviderAction.tsx index 8898bf26..23734c2e 100644 --- a/src/video/components/popouts/PopoutProviderAction.tsx +++ b/src/video/components/popouts/PopoutProviderAction.tsx @@ -5,6 +5,7 @@ import { SourceSelectionPopout } from "@/video/components/popouts/SourceSelectio import { CaptionSelectionPopout } from "@/video/components/popouts/CaptionSelectionPopout"; import { useVideoPlayerDescriptor } from "@/video/state/hooks"; import { useControls } from "@/video/state/logic/controls"; +import { useIsMobile } from "@/hooks/useIsMobile"; import { useInterface, VideoInterfaceEvent, @@ -37,6 +38,8 @@ function PopoutContainer(props: { videoInterface: VideoInterfaceEvent }) { const [bottom, setBottom] = useState(0); const [width, setWidth] = useState(0); + const { isMobile } = useIsMobile(true); + const calculateAndSetCoords = useCallback((rect: DOMRect, w: number) => { const buttonCenter = rect.left + rect.width / 2; @@ -57,7 +60,9 @@ function PopoutContainer(props: { videoInterface: VideoInterfaceEvent }) { return (