diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 21b9b57..2a686f4 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -567,8 +567,12 @@ $scrollbarYRail.remove(); // clean all variables + $scrollbarXRail = + $scrollbarYRail = $scrollbarX = $scrollbarY = + scrollbarXActive = + scrollbarYActive = containerWidth = containerHeight = contentWidth = @@ -576,10 +580,15 @@ scrollbarXWidth = scrollbarXLeft = scrollbarXBottom = + isScrollbarXUsingBottom = + scrollbarXTop = scrollbarYHeight = scrollbarYTop = - scrollbarYRight = null; - isRtl = null; + scrollbarYRight = + isScrollbarYUsingRight = + scrollbarYLeft = + isRtl = + eventClassName = null; }; var ieSupport = function (version) {