feat: remove auto play

This commit is contained in:
Zamitto 2024-05-20 13:17:19 -03:00
parent a8f072dd1b
commit f90dd82cbd

View file

@ -58,9 +58,7 @@ export function GallerySlider({ gameDetails }: GallerySliderProps) {
if (hasMovies && mediaContainerRef.current) {
mediaContainerRef.current.childNodes.forEach((node, index) => {
if (node instanceof HTMLVideoElement) {
if (index == mediaIndex) {
node.play();
} else {
if (index !== mediaIndex) {
node.pause();
}
}