mirror of
https://github.com/stashapp/stash.git
synced 2026-01-13 19:54:09 +01:00
Play scene when scrubber clicked (#2546)
This commit is contained in:
parent
a8456dd188
commit
1964481ff2
1 changed files with 6 additions and 1 deletions
|
|
@ -412,7 +412,12 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
|||
playerRef.current?.pause();
|
||||
};
|
||||
const onScrubberSeek = (seconds: number) => {
|
||||
playerRef.current?.currentTime(seconds);
|
||||
const player = playerRef.current;
|
||||
if (player) {
|
||||
player.play()?.then(() => {
|
||||
player.currentTime(seconds);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const isPortrait =
|
||||
|
|
|
|||
Loading…
Reference in a new issue