Skip to content

Commit 094e663

Browse files
committed
Fixed the disabling of the next button when multiple items are shown at once in a scrollable
When scrolling by more than one item in a scrollable, the next button does not get disabled correctly.
1 parent 7c6634b commit 094e663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scrollable/scrollable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
setTimeout(function() {
265265
if (!e.isDefaultPrevented()) {
266266
prev.toggleClass(conf.disabledClass, i <= 0);
267-
next.toggleClass(conf.disabledClass, i >= self.getSize() -1);
267+
next.toggleClass(conf.disabledClass, i >= self.getSize() -conf.size);
268268
}
269269
}, 1);
270270
});

0 commit comments

Comments
 (0)