Skip to content

Commit ddd7d96

Browse files
Bug Fix: #781
1 parent 2b0b7f4 commit ddd7d96

File tree

9 files changed

+14
-12
lines changed

9 files changed

+14
-12
lines changed

dist/js/splide.cjs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Splide.js
3-
* Version : 4.0.1
3+
* Version : 4.0.2
44
* License : MIT
55
* Copyright: 2022 Naotoshi Fujita
66
*/
@@ -760,7 +760,7 @@ var FRICTION = 5;
760760
var LOG_INTERVAL = 200;
761761
var POINTER_DOWN_EVENTS = "touchstart mousedown";
762762
var POINTER_MOVE_EVENTS = "touchmove mousemove";
763-
var POINTER_UP_EVENTS = "touchend touchcancel mouseup";
763+
var POINTER_UP_EVENTS = "touchend touchcancel mouseup click";
764764

765765
function Elements(Splide2, Components2, options) {
766766
var _EventInterface = EventInterface(Splide2),

dist/js/splide.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
44

55
/*!
66
* Splide.js
7-
* Version : 4.0.1
7+
* Version : 4.0.2
88
* License : MIT
99
* Copyright: 2022 Naotoshi Fujita
1010
*/
@@ -755,7 +755,7 @@ var FRICTION = 5;
755755
var LOG_INTERVAL = 200;
756756
var POINTER_DOWN_EVENTS = "touchstart mousedown";
757757
var POINTER_MOVE_EVENTS = "touchmove mousemove";
758-
var POINTER_UP_EVENTS = "touchend touchcancel mouseup";
758+
var POINTER_UP_EVENTS = "touchend touchcancel mouseup click";
759759

760760
function Elements(Splide2, Components2, options) {
761761
var _EventInterface = EventInterface(Splide2),

dist/js/splide.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
44

55
/*!
66
* Splide.js
7-
* Version : 4.0.1
7+
* Version : 4.0.2
88
* License : MIT
99
* Copyright: 2022 Naotoshi Fujita
1010
*/
@@ -753,7 +753,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
753753
var LOG_INTERVAL = 200;
754754
var POINTER_DOWN_EVENTS = "touchstart mousedown";
755755
var POINTER_MOVE_EVENTS = "touchmove mousemove";
756-
var POINTER_UP_EVENTS = "touchend touchcancel mouseup";
756+
var POINTER_UP_EVENTS = "touchend touchcancel mouseup click";
757757

758758
function Elements(Splide2, Components2, options) {
759759
var _EventInterface = EventInterface(Splide2),

dist/js/splide.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/splide.min.js.gz

3 Bytes
Binary file not shown.

dist/js/splide.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splidejs/splide",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"description": "Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.",
55
"author": "Naotoshi Fujita",
66
"license": "MIT",
@@ -20,6 +20,7 @@
2020
"responsive",
2121
"typescript"
2222
],
23+
"homepage": "https://splidejs.com/",
2324
"repository": {
2425
"type": "git",
2526
"url": "git+https://github.com/Splidejs/splide.git"

src/js/components/Drag/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export const POINTER_MOVE_EVENTS = 'touchmove mousemove';
2828

2929
/**
3030
* End events for dragging.
31+
* The `click` event is required because the browser sometimes dispatches `drag` events instead of `mouse`.
3132
*
3233
* @since 3.0.0
3334
*/
34-
export const POINTER_UP_EVENTS = 'touchend touchcancel mouseup';
35+
export const POINTER_UP_EVENTS = 'touchend touchcancel mouseup click';

0 commit comments

Comments
 (0)