Focus scene player after loading new scene (#2758)

* Focus scene player after loading new scene
This commit is contained in:
WithoutPants
2022-07-22 17:32:03 +10:00
committed by GitHub
parent c21c334553
commit 4b7ef76321
2 changed files with 2 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
### 🐛 Bug fixes
* Fix scene player losing focus when playing next/previous scene. ([#2758](https://github.com/stashapp/stash/pull/2758))
* Fix UI crash when % character used in tag names. ([#2757](https://github.com/stashapp/stash/pull/2757))
* Fix keyboard shortcuts not working after selecting an object. ([#2750](https://github.com/stashapp/stash/pull/2750))
* Fix UI crash on session timeout. ([#2755](https://github.com/stashapp/stash/pull/2755))

View File

@@ -558,6 +558,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
interactiveClient.setLooping(looping);
player.load();
player.focus();
if ((player as any).vttThumbnails?.src)
(player as any).vttThumbnails?.src(scene?.paths.vtt);