diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 2a686f4..76d17b7 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -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 () {