Merge pull request #159 from sarunas/master

Add ps-visible class on container then scrollbar is active.
This commit is contained in:
Hyunje Alex Jun 2014-07-16 18:37:21 +01:00
commit c6f2e6abd3

View File

@ -192,6 +192,18 @@
$scrollbarX.css({left: scrollbarXLeft, width: scrollbarXWidth}); $scrollbarX.css({left: scrollbarXLeft, width: scrollbarXWidth});
$scrollbarY.css({top: scrollbarYTop, height: scrollbarYHeight}); $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 () { var updateBarSizeAndPosition = function () {