Skip to content

Commit 35e7251

Browse files
Bug Fix: All listeners should have same listener options.
1 parent 2bd4ab6 commit 35e7251

File tree

10 files changed

+17
-24
lines changed

10 files changed

+17
-24
lines changed

dist/js/splide-renderer.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.cjs.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Splide.js
3-
* Version : 3.0.7
3+
* Version : 3.0.8
44
* License : MIT
55
* Copyright: 2021 Naotoshi Fujita
66
*/
@@ -1744,9 +1744,8 @@ function Drag(Splide2, Components2, options) {
17441744
let disabled;
17451745
let target;
17461746
function mount() {
1747-
const passive = { passive: true };
1748-
bind(track, POINTER_MOVE_EVENTS, noop, passive);
1749-
bind(track, POINTER_UP_EVENTS, noop, passive);
1747+
bind(track, POINTER_MOVE_EVENTS, noop, listenerOptions);
1748+
bind(track, POINTER_UP_EVENTS, noop, listenerOptions);
17501749
bind(track, POINTER_DOWN_EVENTS, onPointerDown, listenerOptions);
17511750
bind(track, "click", onClick, { capture: true });
17521751
on([EVENT_MOUNTED, EVENT_UPDATED], init);

dist/js/splide.esm.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Splide.js
3-
* Version : 3.0.7
3+
* Version : 3.0.8
44
* License : MIT
55
* Copyright: 2021 Naotoshi Fujita
66
*/
@@ -1740,9 +1740,8 @@ function Drag(Splide2, Components2, options) {
17401740
let disabled;
17411741
let target;
17421742
function mount() {
1743-
const passive = { passive: true };
1744-
bind(track, POINTER_MOVE_EVENTS, noop, passive);
1745-
bind(track, POINTER_UP_EVENTS, noop, passive);
1743+
bind(track, POINTER_MOVE_EVENTS, noop, listenerOptions);
1744+
bind(track, POINTER_UP_EVENTS, noop, listenerOptions);
17461745
bind(track, POINTER_DOWN_EVENTS, onPointerDown, listenerOptions);
17471746
bind(track, "click", onClick, { capture: true });
17481747
on([EVENT_MOUNTED, EVENT_UPDATED], init);

dist/js/splide.js

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

dist/js/splide.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.

dist/js/splide.min.js

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

dist/js/splide.min.js.gz

-8 Bytes
Binary file not shown.

dist/types/components/Drag/Drag.d.ts.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.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splidejs/splide",
3-
"version": "3.0.7",
3+
"version": "3.0.8",
44
"description": "Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.",
55
"author": "Naotoshi Fujita",
66
"license": "MIT",

src/js/components/Drag/Drag.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ export function Drag( Splide: Splide, Components: Components, options: Options )
9191
* Called when the component is mounted.
9292
*/
9393
function mount(): void {
94-
const passive = { passive: true };
95-
96-
bind( track, POINTER_MOVE_EVENTS, noop, passive );
97-
bind( track, POINTER_UP_EVENTS, noop, passive );
94+
bind( track, POINTER_MOVE_EVENTS, noop, listenerOptions );
95+
bind( track, POINTER_UP_EVENTS, noop, listenerOptions );
9896
bind( track, POINTER_DOWN_EVENTS, onPointerDown, listenerOptions );
9997
bind( track, 'click', onClick, { capture: true } );
10098

0 commit comments

Comments
 (0)