Stop propagating click event through scrollbar rails.

Fixes #326.
This commit is contained in:
Hyunje Alex Jun 2015-04-29 13:08:03 +09:00
parent ca4d835129
commit fc28ceb4ea

View File

@ -28,6 +28,8 @@ function bindClickRailHandler(element, i) {
element.scrollTop = (i.contentHeight - i.containerHeight) * positionRatio; element.scrollTop = (i.contentHeight - i.containerHeight) * positionRatio;
updateGeometry(element); updateGeometry(element);
e.stopPropagation();
}); });
i.event.bind(i.scrollbarX, 'click', stopPropagation); i.event.bind(i.scrollbarX, 'click', stopPropagation);
@ -45,6 +47,8 @@ function bindClickRailHandler(element, i) {
element.scrollLeft = (i.contentWidth - i.containerWidth) * positionRatio; element.scrollLeft = (i.contentWidth - i.containerWidth) * positionRatio;
updateGeometry(element); updateGeometry(element);
e.stopPropagation();
}); });
} }