Naotoshi Fujita 3 years ago
parent
commit
ddd7d96ddc

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

@@ -1,6 +1,6 @@
 /*!
  * Splide.js
- * Version  : 4.0.1
+ * Version  : 4.0.2
  * License  : MIT
  * Copyright: 2022 Naotoshi Fujita
  */
@@ -760,7 +760,7 @@ var FRICTION = 5;
 var LOG_INTERVAL = 200;
 var POINTER_DOWN_EVENTS = "touchstart mousedown";
 var POINTER_MOVE_EVENTS = "touchmove mousemove";
-var POINTER_UP_EVENTS = "touchend touchcancel mouseup";
+var POINTER_UP_EVENTS = "touchend touchcancel mouseup click";
 
 function Elements(Splide2, Components2, options) {
   var _EventInterface = EventInterface(Splide2),

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

@@ -4,7 +4,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
 
 /*!
  * Splide.js
- * Version  : 4.0.1
+ * Version  : 4.0.2
  * License  : MIT
  * Copyright: 2022 Naotoshi Fujita
  */
@@ -755,7 +755,7 @@ var FRICTION = 5;
 var LOG_INTERVAL = 200;
 var POINTER_DOWN_EVENTS = "touchstart mousedown";
 var POINTER_MOVE_EVENTS = "touchmove mousemove";
-var POINTER_UP_EVENTS = "touchend touchcancel mouseup";
+var POINTER_UP_EVENTS = "touchend touchcancel mouseup click";
 
 function Elements(Splide2, Components2, options) {
   var _EventInterface = EventInterface(Splide2),

+ 2 - 2
dist/js/splide.js

@@ -4,7 +4,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
 
 /*!
  * Splide.js
- * Version  : 4.0.1
+ * Version  : 4.0.2
  * License  : MIT
  * Copyright: 2022 Naotoshi Fujita
  */
@@ -753,7 +753,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
   var LOG_INTERVAL = 200;
   var POINTER_DOWN_EVENTS = "touchstart mousedown";
   var POINTER_MOVE_EVENTS = "touchmove mousemove";
-  var POINTER_UP_EVENTS = "touchend touchcancel mouseup";
+  var POINTER_UP_EVENTS = "touchend touchcancel mouseup click";
 
   function Elements(Splide2, Components2, options) {
     var _EventInterface = EventInterface(Splide2),

File diff suppressed because it is too large
+ 0 - 0
dist/js/splide.min.js


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


File diff suppressed because it is too large
+ 0 - 0
dist/js/splide.min.js.map


+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "@splidejs/splide",
-  "version": "4.0.1",
+  "version": "4.0.2",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "@splidejs/splide",
-      "version": "4.0.1",
+      "version": "4.0.2",
       "license": "MIT",
       "devDependencies": {
         "@babel/core": "^7.16.10",

+ 2 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@splidejs/splide",
-  "version": "4.0.1",
+  "version": "4.0.2",
   "description": "Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.",
   "author": "Naotoshi Fujita",
   "license": "MIT",
@@ -20,6 +20,7 @@
     "responsive",
     "typescript"
   ],
+  "homepage": "https://splidejs.com/",
   "repository": {
     "type": "git",
     "url": "git+https://github.com/Splidejs/splide.git"

+ 2 - 1
src/js/components/Drag/constants.ts

@@ -28,7 +28,8 @@ export const POINTER_MOVE_EVENTS = 'touchmove mousemove';
 
 /**
  * End events for dragging.
+ * The `click` event is required because the browser sometimes dispatches `drag` events instead of `mouse`.
  *
  * @since 3.0.0
  */
-export const POINTER_UP_EVENTS = 'touchend touchcancel mouseup';
+export const POINTER_UP_EVENTS = 'touchend touchcancel mouseup click';

Some files were not shown because too many files changed in this diff