Add ps-active-* class on container then scrollbar is active

This commit is contained in:
Šarūnas Dubinskas 2014-07-07 10:42:37 +03:00
parent 4b3b057838
commit fd56fdfe02

View File

@ -192,6 +192,18 @@
$scrollbarX.css({left: scrollbarXLeft, width: scrollbarXWidth});
$scrollbarY.css({top: scrollbarYTop, height: scrollbarYHeight});
if (scrollbarXActive) {
$this.addClass('ps-active-x');
} else {
$this.removeClass('ps-active-x');
}
if (scrollbarYActive) {
$this.addClass('ps-active-y');
} else {
$this.removeClass('ps-active-y');
}
};
var updateBarSizeAndPosition = function () {