mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: remove auto play
This commit is contained in:
parent
a8f072dd1b
commit
f90dd82cbd
1 changed files with 1 additions and 3 deletions
|
@ -58,9 +58,7 @@ export function GallerySlider({ gameDetails }: GallerySliderProps) {
|
||||||
if (hasMovies && mediaContainerRef.current) {
|
if (hasMovies && mediaContainerRef.current) {
|
||||||
mediaContainerRef.current.childNodes.forEach((node, index) => {
|
mediaContainerRef.current.childNodes.forEach((node, index) => {
|
||||||
if (node instanceof HTMLVideoElement) {
|
if (node instanceof HTMLVideoElement) {
|
||||||
if (index == mediaIndex) {
|
if (index !== mediaIndex) {
|
||||||
node.play();
|
|
||||||
} else {
|
|
||||||
node.pause();
|
node.pause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue