NaotoshiFujita 3 년 전
부모
커밋
815030f3c4

+ 0 - 9
.editorconfig

@@ -1,9 +0,0 @@
-root = true
-
-[*]
-indent_style = space
-indent_size = 2
-charset = utf-8
-end_of_line = lf
-trim_trailing_whitespace = true
-insert_final_newline = true

+ 1 - 1
dist/js/splide-renderer.min.js

@@ -1,6 +1,6 @@
 /*!
 /*!
  * Splide.js
  * Splide.js
- * Version  : 3.6.8
+ * Version  : 3.6.9
  * License  : MIT
  * License  : MIT
  * Copyright: 2021 Naotoshi Fujita
  * Copyright: 2021 Naotoshi Fujita
  */
  */

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

@@ -1,6 +1,6 @@
 /*!
 /*!
  * Splide.js
  * Splide.js
- * Version  : 3.6.8
+ * Version  : 3.6.9
  * License  : MIT
  * License  : MIT
  * Copyright: 2021 Naotoshi Fujita
  * Copyright: 2021 Naotoshi Fujita
  */
  */
@@ -1787,12 +1787,12 @@ function Drag(Splide2, Components2, options) {
       const { noDrag } = options;
       const { noDrag } = options;
       const isTouch = isTouchEvent(e);
       const isTouch = isTouchEvent(e);
       const isDraggable = !noDrag || !matches(e.target, noDrag);
       const isDraggable = !noDrag || !matches(e.target, noDrag);
+      clickPrevented = false;
       if (isDraggable && (isTouch || !e.button)) {
       if (isDraggable && (isTouch || !e.button)) {
         if (!Move.isBusy()) {
         if (!Move.isBusy()) {
           target = isTouch ? track : window;
           target = isTouch ? track : window;
           prevBaseEvent = null;
           prevBaseEvent = null;
           lastEvent = null;
           lastEvent = null;
-          clickPrevented = false;
           bind(target, POINTER_MOVE_EVENTS, onPointerMove, SCROLL_LISTENER_OPTIONS);
           bind(target, POINTER_MOVE_EVENTS, onPointerMove, SCROLL_LISTENER_OPTIONS);
           bind(target, POINTER_UP_EVENTS, onPointerUp, SCROLL_LISTENER_OPTIONS);
           bind(target, POINTER_UP_EVENTS, onPointerUp, SCROLL_LISTENER_OPTIONS);
           Move.cancel();
           Move.cancel();

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

@@ -1,6 +1,6 @@
 /*!
 /*!
  * Splide.js
  * Splide.js
- * Version  : 3.6.8
+ * Version  : 3.6.9
  * License  : MIT
  * License  : MIT
  * Copyright: 2021 Naotoshi Fujita
  * Copyright: 2021 Naotoshi Fujita
  */
  */
@@ -1783,12 +1783,12 @@ function Drag(Splide2, Components2, options) {
       const { noDrag } = options;
       const { noDrag } = options;
       const isTouch = isTouchEvent(e);
       const isTouch = isTouchEvent(e);
       const isDraggable = !noDrag || !matches(e.target, noDrag);
       const isDraggable = !noDrag || !matches(e.target, noDrag);
+      clickPrevented = false;
       if (isDraggable && (isTouch || !e.button)) {
       if (isDraggable && (isTouch || !e.button)) {
         if (!Move.isBusy()) {
         if (!Move.isBusy()) {
           target = isTouch ? track : window;
           target = isTouch ? track : window;
           prevBaseEvent = null;
           prevBaseEvent = null;
           lastEvent = null;
           lastEvent = null;
-          clickPrevented = false;
           bind(target, POINTER_MOVE_EVENTS, onPointerMove, SCROLL_LISTENER_OPTIONS);
           bind(target, POINTER_MOVE_EVENTS, onPointerMove, SCROLL_LISTENER_OPTIONS);
           bind(target, POINTER_UP_EVENTS, onPointerUp, SCROLL_LISTENER_OPTIONS);
           bind(target, POINTER_UP_EVENTS, onPointerUp, SCROLL_LISTENER_OPTIONS);
           Move.cancel();
           Move.cancel();

+ 2 - 2
dist/js/splide.js

@@ -4,7 +4,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
 
 
 /*!
 /*!
  * Splide.js
  * Splide.js
- * Version  : 3.6.8
+ * Version  : 3.6.9
  * License  : MIT
  * License  : MIT
  * Copyright: 2021 Naotoshi Fujita
  * Copyright: 2021 Naotoshi Fujita
  */
  */
@@ -2148,13 +2148,13 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
         var noDrag = options.noDrag;
         var noDrag = options.noDrag;
         var isTouch = isTouchEvent(e);
         var isTouch = isTouchEvent(e);
         var isDraggable = !noDrag || !matches(e.target, noDrag);
         var isDraggable = !noDrag || !matches(e.target, noDrag);
+        clickPrevented = false;
 
 
         if (isDraggable && (isTouch || !e.button)) {
         if (isDraggable && (isTouch || !e.button)) {
           if (!Move.isBusy()) {
           if (!Move.isBusy()) {
             target = isTouch ? track : window;
             target = isTouch ? track : window;
             prevBaseEvent = null;
             prevBaseEvent = null;
             lastEvent = null;
             lastEvent = null;
-            clickPrevented = false;
             bind(target, POINTER_MOVE_EVENTS, onPointerMove, SCROLL_LISTENER_OPTIONS);
             bind(target, POINTER_MOVE_EVENTS, onPointerMove, SCROLL_LISTENER_OPTIONS);
             bind(target, POINTER_UP_EVENTS, onPointerUp, SCROLL_LISTENER_OPTIONS);
             bind(target, POINTER_UP_EVENTS, onPointerUp, SCROLL_LISTENER_OPTIONS);
             Move.cancel();
             Move.cancel();

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


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


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


+ 1 - 1
package-lock.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "@splidejs/splide",
   "name": "@splidejs/splide",
-  "version": "3.6.8",
+  "version": "3.6.9",
   "lockfileVersion": 1,
   "lockfileVersion": 1,
   "requires": true,
   "requires": true,
   "dependencies": {
   "dependencies": {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "@splidejs/splide",
   "name": "@splidejs/splide",
-  "version": "3.6.8",
+  "version": "3.6.9",
   "description": "Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.",
   "description": "Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.",
   "author": "Naotoshi Fujita",
   "author": "Naotoshi Fujita",
   "license": "MIT",
   "license": "MIT",

+ 5 - 4
src/js/components/Drag/Drag.ts

@@ -122,12 +122,13 @@ export function Drag( Splide: Splide, Components: Components, options: Options )
       const isTouch     = isTouchEvent( e );
       const isTouch     = isTouchEvent( e );
       const isDraggable = ! noDrag || ! matches( e.target, noDrag );
       const isDraggable = ! noDrag || ! matches( e.target, noDrag );
 
 
+      clickPrevented = false;
+
       if ( isDraggable && ( isTouch || ! e.button ) ) {
       if ( isDraggable && ( isTouch || ! e.button ) ) {
         if ( ! Move.isBusy() ) {
         if ( ! Move.isBusy() ) {
-          target         = isTouch ? track : window;
-          prevBaseEvent  = null;
-          lastEvent      = null;
-          clickPrevented = false;
+          target        = isTouch ? track : window;
+          prevBaseEvent = null;
+          lastEvent     = null;
 
 
           bind( target, POINTER_MOVE_EVENTS, onPointerMove, SCROLL_LISTENER_OPTIONS );
           bind( target, POINTER_MOVE_EVENTS, onPointerMove, SCROLL_LISTENER_OPTIONS );
           bind( target, POINTER_UP_EVENTS, onPointerUp, SCROLL_LISTENER_OPTIONS );
           bind( target, POINTER_UP_EVENTS, onPointerUp, SCROLL_LISTENER_OPTIONS );

+ 4 - 0
src/js/test/php/examples/default.php

@@ -53,6 +53,10 @@ $settings = get_settings();
       } );
       } );
 
 
       splide.mount();
       splide.mount();
+
+			// Array.from( document.getElementsByTagName( 'button' ) ).forEach( button => {
+			// 	button.addEventListener( 'click', () => alert( 'click' ) );
+			// } );
     } );
     } );
   </script>
   </script>
 
 

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