Skip to content

Commit 3153487

Browse files
committed
Merge pull request jquerytools#396 from julianwachholz/dev
Prevent bubbling on previous/next links
2 parents b9a35fb + 79baeae commit 3153487

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)