| @@ -1166,9 +1166,8 @@ | ||
| 1166 | 1166 | } |
| 1167 | 1167 | createSwiperInstance(container, config) { |
| 1168 | 1168 | const SwiperSource = window.Swiper; |
| 1169 | 1169 | SwiperSource.prototype.adjustConfig = this.adjustConfig; |
| 1170 | - config = this.applyMotionPreferences(config); | |
| 1171 | 1170 | return new SwiperSource(container, config); |
| 1172 | 1171 | } |
| 1173 | 1172 | |
| 1174 | 1173 | // Backwards compatibility for Elementor Pro <2.9.0 (old Swiper version - <5.0.0) |
| @@ -1212,18 +1211,8 @@ | ||
| 1212 | 1211 | slidesPerGroup: config.slidesPerGroup ? config.slidesPerGroup : 1 |
| 1213 | 1212 | }; |
| 1214 | 1213 | }); |
| 1215 | 1214 | return config; |
| 1216 | - } | |
| 1217 | - applyMotionPreferences(config) { | |
| 1218 | - const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches; | |
| 1219 | - if (!prefersReducedMotion) { | |
| 1220 | - return config; | |
| 1221 | - } | |
| 1222 | - return Object.assign({}, config, { | |
| 1223 | - speed: 0, | |
| 1224 | - autoplay: false | |
| 1225 | - }); | |
| 1226 | 1215 | } |
| 1227 | 1216 | } |
| 1228 | 1217 | exports["default"] = SwiperHandler; |
| 1229 | 1218 | |