diff --git a/src/modules/mousewheel/mousewheel.js b/src/modules/mousewheel/mousewheel.js index 9bde07fb7..22f3220bc 100644 --- a/src/modules/mousewheel/mousewheel.js +++ b/src/modules/mousewheel/mousewheel.js @@ -176,6 +176,10 @@ export default function Mousewheel({ swiper, extendParams, on, emit }) { let e = event; let disableParentSwiper = true; if (!swiper.enabled) return; + + // Ignore event if the target or its parents have the swiper-no-mousewheel class + if (event.target.closest(".swiper-no-mousewheel")) return; + const params = swiper.params.mousewheel; if (swiper.params.cssMode) {