소스 검색

Set the passive and capture flags.

NaotoshiFujita 3 년 전
부모
커밋
16de543dd6
7개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      dist/js/splide.cjs.js
  2. 1 1
      dist/js/splide.esm.js
  3. 4 1
      dist/js/splide.js
  4. 0 0
      dist/js/splide.js.map
  5. 0 0
      dist/js/splide.min.js
  6. BIN
      dist/js/splide.min.js.gz
  7. 1 1
      src/js/components/Wheel/Wheel.ts

+ 1 - 1
dist/js/splide.cjs.js

@@ -2143,7 +2143,7 @@ function Wheel(Splide2, Components2, options) {
   const { bind } = EventInterface(Splide2);
   function mount() {
     if (options.wheel) {
-      bind(Components2.Elements.track, "wheel", onWheel);
+      bind(Components2.Elements.track, "wheel", onWheel, { passive: false, capture: true });
     }
   }
   function onWheel(e) {

+ 1 - 1
dist/js/splide.esm.js

@@ -2139,7 +2139,7 @@ function Wheel(Splide2, Components2, options) {
   const { bind } = EventInterface(Splide2);
   function mount() {
     if (options.wheel) {
-      bind(Components2.Elements.track, "wheel", onWheel);
+      bind(Components2.Elements.track, "wheel", onWheel, { passive: false, capture: true });
     }
   }
   function onWheel(e) {

+ 4 - 1
dist/js/splide.js

@@ -2644,7 +2644,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
 
     function mount() {
       if (options.wheel) {
-        bind(Components2.Elements.track, "wheel", onWheel);
+        bind(Components2.Elements.track, "wheel", onWheel, {
+          passive: false,
+          capture: true
+        });
       }
     }
 

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/js/splide.js.map


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/js/splide.min.js


BIN
dist/js/splide.min.js.gz


+ 1 - 1
src/js/components/Wheel/Wheel.ts

@@ -31,7 +31,7 @@ export function Wheel( Splide: Splide, Components: Components, options: Options
    */
   function mount(): void {
     if ( options.wheel ) {
-      bind( Components.Elements.track, 'wheel', onWheel );
+      bind( Components.Elements.track, 'wheel', onWheel, { passive: false, capture: true } );
     }
   }
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.