mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Play scene when scrubber clicked (#2546)
This commit is contained in:
@@ -412,7 +412,12 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
|||||||
playerRef.current?.pause();
|
playerRef.current?.pause();
|
||||||
};
|
};
|
||||||
const onScrubberSeek = (seconds: number) => {
|
const onScrubberSeek = (seconds: number) => {
|
||||||
playerRef.current?.currentTime(seconds);
|
const player = playerRef.current;
|
||||||
|
if (player) {
|
||||||
|
player.play()?.then(() => {
|
||||||
|
player.currentTime(seconds);
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const isPortrait =
|
const isPortrait =
|
||||||
|
|||||||
Reference in New Issue
Block a user