Skip to content

Commit

Permalink
Bug Fix: #781
Browse files Browse the repository at this point in the history
  • Loading branch information
NaotoshiFujita committed May 14, 2022
1 parent 2b0b7f4 commit ddd7d96
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dist/js/splide.cjs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Splide.js
* Version : 4.0.1
* Version : 4.0.2
* License : MIT
* Copyright: 2022 Naotoshi Fujita
*/
Expand Down Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions dist/js/splide.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions dist/js/splide.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion dist/js/splide.min.js

Large diffs are not rendered by default.

Binary file modified dist/js/splide.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/js/splide.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -20,6 +20,7 @@
"responsive",
"typescript"
],
"homepage": "https://splidejs.com/",
"repository": {
"type": "git",
"url": "git+https://github.com/Splidejs/splide.git"
Expand Down
3 changes: 2 additions & 1 deletion src/js/components/Drag/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit ddd7d96

Please sign in to comment.