@@ -2582,6 +2582,7 @@ var Scroll_Scroll = /*#__PURE__*/function () {
25822582 this . scrollTargetsLength = this . scrollTargets . length ;
25832583 }
25842584
2585+ ! this . scrollBlockElements && this . updateScrollBlockElements ( ) ;
25852586 this . iframes = this . scrollContainer . querySelectorAll ( 'iframe' ) ;
25862587
25872588 if ( Store_default . a . isTouch && this . options . disableOnTouch ) {
@@ -2672,6 +2673,20 @@ var Scroll_Scroll = /*#__PURE__*/function () {
26722673 this . iframes [ i ] . style . pointerEvents = enable ? 'auto' : 'none' ;
26732674 }
26742675 }
2676+ } , {
2677+ key : "updateScrollBlockElements" ,
2678+ value : function updateScrollBlockElements ( ) {
2679+ this . scrollBlockElements = document . querySelectorAll ( this . options . blockScrollClass ) ;
2680+
2681+ for ( var i = 0 ; i < this . scrollBlockElements . length ; i ++ ) {
2682+ this . scrollBlockElements [ i ] . addEventListener ( 'wheel' , this . blockScrollEvent ) ;
2683+ }
2684+ }
2685+ } , {
2686+ key : "blockScrollEvent" ,
2687+ value : function blockScrollEvent ( e ) {
2688+ e . stopPropagation ( ) ;
2689+ }
26752690 } , {
26762691 key : "toggleFixedContainer" ,
26772692 value : function toggleFixedContainer ( ) {
@@ -2735,7 +2750,9 @@ var src_ASScroll = /*#__PURE__*/function () {
27352750 _ref$disableResize = _ref . disableResize ,
27362751 disableResize = _ref$disableResize === void 0 ? false : _ref$disableResize ,
27372752 _ref$limitLerpRate = _ref . limitLerpRate ,
2738- limitLerpRate = _ref$limitLerpRate === void 0 ? true : _ref$limitLerpRate ;
2753+ limitLerpRate = _ref$limitLerpRate === void 0 ? true : _ref$limitLerpRate ,
2754+ _ref$blockScrollClass = _ref . blockScrollClass ,
2755+ blockScrollClass = _ref$blockScrollClass === void 0 ? '.asscroll-block' : _ref$blockScrollClass ;
27392756
27402757 src_classCallCheck ( this , ASScroll ) ;
27412758
@@ -2755,7 +2772,8 @@ var src_ASScroll = /*#__PURE__*/function () {
27552772 scrollbarStyles,
27562773 disableNativeScrollbar,
27572774 disableOnTouch,
2758- limitLerpRate
2775+ limitLerpRate,
2776+ blockScrollClass
27592777 } ) ;
27602778 }
27612779
0 commit comments