Show Thumbnail

This commit is contained in:
Felix Boehme 2023-08-31 18:58:36 +02:00
parent 146323f817
commit a8662d02d4
No known key found for this signature in database
GPG Key ID: 7EB0603E4E9642EA

View File

@ -22,7 +22,7 @@ export function ProgressAction() {
const controlRef = useRef<typeof controls>(controls); const controlRef = useRef<typeof controls>(controls);
const [hoverPosition, setHoverPosition] = useState<number>(0); const [hoverPosition, setHoverPosition] = useState<number>(0);
const [isThumbnailVisible, setIsThumbnailVisible] = useState<boolean>(false); const [isThumbnailVisible, setIsThumbnailVisible] = useState<boolean>(false);
const casting = getPlayerState(descriptor).casting; const casting = getPlayerState(descriptor).casting.isCasting;
const onMouseOver = useCallback((e: MouseActivity) => { const onMouseOver = useCallback((e: MouseActivity) => {
setHoverPosition(e.clientX); setHoverPosition(e.clientX);
setIsThumbnailVisible(true); setIsThumbnailVisible(true);