Skip to content

Commit 64eafd2

Browse files
Bug Fix: perMove was not updated according to the breakpoints option(#8).
1 parent 6c9e199 commit 64eafd2

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

dist/js/splide.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Splide.js
3-
* Version : 1.3.2
3+
* Version : 1.3.3
44
* License : MIT
55
* Copyright: 2019 Naotoshi Fujita
66
*/
@@ -4230,11 +4230,12 @@ var SIZE = 40;
42304230
*/
42314231

42324232
function listen() {
4233-
var perMove = Splide.options.perMove;
42344233
subscribe(arrows.prev, 'click', function () {
4234+
var perMove = Splide.options.perMove;
42354235
Splide.go(perMove ? "-" + perMove : '<');
42364236
});
42374237
subscribe(arrows.next, 'click', function () {
4238+
var perMove = Splide.options.perMove;
42384239
Splide.go(perMove ? "+" + perMove : '>');
42394240
});
42404241
}

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

-7 Bytes
Binary file not shown.

package-lock.json

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": "1.3.2",
3+
"version": "1.3.3",
44
"description": "Splide is a lightweight and powerful slider without any dependencies.",
55
"author": "Naotoshi Fujita",
66
"license": "MIT",

src/js/components/arrows/index.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,15 @@ export default ( Splide, Components, name ) => {
9090
* Subscribe click events.
9191
*/
9292
function listen() {
93-
const perMove = Splide.options.perMove;
94-
subscribe( arrows.prev, 'click', () => { Splide.go( perMove ? `-${ perMove }` : '<' ) } );
95-
subscribe( arrows.next, 'click', () => { Splide.go( perMove ? `+${ perMove }` : '>' ) } );
93+
subscribe( arrows.prev, 'click', () => {
94+
const perMove = Splide.options.perMove;
95+
Splide.go( perMove ? `-${ perMove }` : '<' );
96+
} );
97+
98+
subscribe( arrows.next, 'click', () => {
99+
const perMove = Splide.options.perMove;
100+
Splide.go( perMove ? `+${ perMove }` : '>' );
101+
} );
96102
}
97103

98104
/**

0 commit comments

Comments
 (0)