Quiero hacer esto como javascript móvil, ejecuto este código pero en la vista de computadora portátil macbook safari también se está ejecutando
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { function scrollFinished() { vid = document.getElementsByClassName('my-video-scroll') //play video if (runningVideo < vid.length && runningVideo >= 0) { vidTop = vid[runningVideo].offsetTop window.scrollTo(0, vidTop - 0 - scrHeight * 0); vid[runningVideo].currentTime = 0; vid[runningVideo].play() } //show the currently playing video and the total video to the console console.clear() console.log('running: ' + (runningVideo + 1)) console.log('total: ' + vid.length) setTimeout(function () { scrooling = false }, 500) } }Intenté eliminar el webOS/iphone/ipad/ipod también está funcionando