Merge pull request #458 from ciffel/fix-stopPropagation

Fix stopPropagationOnClick handler
This commit is contained in:
Jun 2016-02-22 19:57:02 +09:00
commit cfc658d648

View File

@ -9,7 +9,7 @@ function bindClickRailHandler(element, i) {
function pageOffset(el) { function pageOffset(el) {
return el.getBoundingClientRect(); return el.getBoundingClientRect();
} }
var stopPropagation = window.Event.prototype.stopPropagation.bind; var stopPropagation = function (e) { e.stopPropagation(); };
if (i.settings.stopPropagationOnClick) { if (i.settings.stopPropagationOnClick) {
i.event.bind(i.scrollbarY, 'click', stopPropagation); i.event.bind(i.scrollbarY, 'click', stopPropagation);