Fix stopPropagationOnClick handler

This commit is contained in:
Mingc
2016-02-18 15:08:45 +08:00
parent e0d6243f24
commit 7e0d5f5dc5

View File

@@ -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);