From 7e0d5f5dc51efbc6b4f221fbcc09390d2901385d Mon Sep 17 00:00:00 2001 From: Mingc Date: Thu, 18 Feb 2016 15:08:45 +0800 Subject: [PATCH] Fix stopPropagationOnClick handler --- src/js/plugin/handler/click-rail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/plugin/handler/click-rail.js b/src/js/plugin/handler/click-rail.js index 31cab25..a32958f 100644 --- a/src/js/plugin/handler/click-rail.js +++ b/src/js/plugin/handler/click-rail.js @@ -9,7 +9,7 @@ function bindClickRailHandler(element, i) { function pageOffset(el) { return el.getBoundingClientRect(); } - var stopPropagation = window.Event.prototype.stopPropagation.bind; + var stopPropagation = function (e) { e.stopPropagation(); }; if (i.settings.stopPropagationOnClick) { i.event.bind(i.scrollbarY, 'click', stopPropagation);