From fc28ceb4ea98d18fcd8ea409de7049b9aa72ea7f Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Wed, 29 Apr 2015 13:08:03 +0900 Subject: [PATCH] Stop propagating click event through scrollbar rails. Fixes #326. --- src/js/plugin/handler/click-rail.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/plugin/handler/click-rail.js b/src/js/plugin/handler/click-rail.js index 94341d5..4ebcb35 100644 --- a/src/js/plugin/handler/click-rail.js +++ b/src/js/plugin/handler/click-rail.js @@ -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); @@ -45,6 +47,8 @@ function bindClickRailHandler(element, i) { element.scrollLeft = (i.contentWidth - i.containerWidth) * positionRatio; updateGeometry(element); + + e.stopPropagation(); }); }