This repository was archived by the owner on Aug 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -2458,6 +2458,7 @@ var Scroll_Scroll = /*#__PURE__*/function () {
24582458 }
24592459 } ) ;
24602460 src_E . delegate ( 'click' , 'a[href^="#"]' , this . toggleFixedContainer ) ;
2461+ src_E . delegate ( 'wheel' , this . options . blockScrollClass , this . blockScrollEvent ) ;
24612462 }
24622463
24632464 Scroll_createClass ( Scroll , [ {
@@ -2582,7 +2583,6 @@ var Scroll_Scroll = /*#__PURE__*/function () {
25822583 this . scrollTargetsLength = this . scrollTargets . length ;
25832584 }
25842585
2585- ! this . scrollBlockElements && this . updateScrollBlockElements ( ) ;
25862586 this . iframes = this . scrollContainer . querySelectorAll ( 'iframe' ) ;
25872587
25882588 if ( Store_default . a . isTouch && this . options . disableOnTouch ) {
@@ -2673,15 +2673,6 @@ var Scroll_Scroll = /*#__PURE__*/function () {
26732673 this . iframes [ i ] . style . pointerEvents = enable ? 'auto' : 'none' ;
26742674 }
26752675 }
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- }
26852676 } , {
26862677 key : "blockScrollEvent" ,
26872678 value : function blockScrollEvent ( e ) {
You can’t perform that action at this time.
0 commit comments