diff --git a/src/core/events/onResize.js b/src/core/events/onResize.js index 9b881ba25..7cdaad8d6 100644 --- a/src/core/events/onResize.js +++ b/src/core/events/onResize.js @@ -44,7 +44,9 @@ export default function onResize() { if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) { clearTimeout(timeout); timeout = setTimeout(() => { - swiper.autoplay.resume(); + if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) { + swiper.autoplay.resume(); + } }, 500); } // Return locks after resize