1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

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 [hoverPosition, setHoverPosition] = useState<number>(0);
const [isThumbnailVisible, setIsThumbnailVisible] = useState<boolean>(false);
const casting = getPlayerState(descriptor).casting;
const casting = getPlayerState(descriptor).casting.isCasting;
const onMouseOver = useCallback((e: MouseActivity) => {
setHoverPosition(e.clientX);
setIsThumbnailVisible(true);