PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.7
Elementor Website Builder – more than just a page builder v3.35.7
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | assets/js/frontend.js +0 -11 4.2.23.35.7 View file →
@@ -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