diff --git a/src/modules/controller/controller.js b/src/modules/controller/controller.js index b23fa94f8..aa4b1012a 100644 --- a/src/modules/controller/controller.js +++ b/src/modules/controller/controller.js @@ -179,11 +179,11 @@ export default function Controller({ swiper, extendParams, on }) { removeSpline(); }); on('setTranslate', (_s, translate, byController) => { - if (!swiper.controller.control) return; + if (!swiper.controller.control || swiper.controller.control.destroyed) return; swiper.controller.setTranslate(translate, byController); }); on('setTransition', (_s, duration, byController) => { - if (!swiper.controller.control) return; + if (!swiper.controller.control || swiper.controller.control.destroyed) return; swiper.controller.setTransition(duration, byController); });