Skip to content

Commit

Permalink
Stop propagating click event through scrollbar rails.
Browse files Browse the repository at this point in the history
Fixes #326.
  • Loading branch information
Hyunje Alex Jun committed Apr 29, 2015
1 parent ca4d835 commit fc28ceb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/plugin/handler/click-rail.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function bindClickRailHandler(element, i) {

element.scrollTop = (i.contentHeight - i.containerHeight) * positionRatio;
updateGeometry(element);

e.stopPropagation();
});

i.event.bind(i.scrollbarX, 'click', stopPropagation);
Expand All @@ -45,6 +47,8 @@ function bindClickRailHandler(element, i) {

element.scrollLeft = (i.contentWidth - i.containerWidth) * positionRatio;
updateGeometry(element);

e.stopPropagation();
});
}

Expand Down

0 comments on commit fc28ceb

Please sign in to comment.