mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 02:45:09 +01:00
Show Thumbnail
This commit is contained in:
parent
146323f817
commit
a8662d02d4
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user