mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +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();
|
||||
};
|
||||
const onScrubberSeek = (seconds: number) => {
|
||||
playerRef.current?.currentTime(seconds);
|
||||
const player = playerRef.current;
|
||||
if (player) {
|
||||
player.play()?.then(() => {
|
||||
player.currentTime(seconds);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const isPortrait =
|
||||
|
||||
Reference in New Issue
Block a user