Skip to content

Commit 18a63c4

Browse files
committed
Update src/scrollable/scrollable.autoscroll.js
1 parent fc1115e commit 18a63c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/scrollable/scrollable.autoscroll.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
conf: {
1919
autoplay: true,
2020
interval: 3000,
21-
autopause: true
21+
autopause: true,
22+
invert: false
2223
}
2324
};
2425

@@ -45,7 +46,7 @@
4546
*/
4647
function scroll(){
4748
timer = setTimeout(function(){
48-
api.next();
49+
ops.invert?api.prev():api.next();
4950
}, opts.interval);
5051
}
5152

0 commit comments

Comments
 (0)