Skip to content

Commit 79baeae

Browse files
prevent event bubbling on previous/next buttons
1 parent 0b32329 commit 79baeae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scrollable/scrollable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@
256256
}
257257

258258
// next/prev buttons
259-
var prev = find(root, conf.prev).click(function() { self.prev(); }),
260-
next = find(root, conf.next).click(function() { self.next(); });
259+
var prev = find(root, conf.prev).click(function(e) { e.stopPropagation(); self.prev(); }),
260+
next = find(root, conf.next).click(function(e) { e.stopPropagation(); self.next(); });
261261

262262
if (!conf.circular) {
263263
self.onBeforeSeek(function(e, i) {

0 commit comments

Comments
 (0)