mirror of https://github.com/stashapp/stash.git
Play scene when scrubber clicked (#2546)
This commit is contained in:
parent
a8456dd188
commit
1964481ff2
|
@ -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 New Issue