Add ps-active-* class on container then scrollbar is active
This commit is contained in:
parent
4b3b057838
commit
fd56fdfe02
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user