Merge pull request #458 from ciffel/fix-stopPropagation
Fix stopPropagationOnClick handler
This commit is contained in:
commit
cfc658d648
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user