hiden scrollbar when main content is invisible

I am use nicescroll with collapse element, the element show after I click a link, I find that when the element hide, the scrollbar will still show if I move mouse to scrollbar position, this hot fix solve my problem and I hope can help others

btw, you'v write a great software