angular-slimscroll icon indicating copy to clipboard operation
angular-slimscroll copied to clipboard

double scrollbar added

Open silentFred opened this issue 8 years ago • 6 comments

Hey man,

I noticed there are two scrollbars being initiated. I am using the scrollbar inside a div with an ng-if directive

Any ideas what might be going wrong?

silentFred avatar Jul 21 '15 06:07 silentFred

Hi @silentFred, could you please create a demo on http://jsfiddle.net/ to explain the problem?

ziscloud avatar Jul 30 '15 03:07 ziscloud

Hi, I noticed a double scrollbar too. Something like this : http://plnkr.co/edit/hB1tGWFQNZvJoaLlEIs0?p=preview ?

emmanuelballery avatar Aug 11 '15 07:08 emmanuelballery

thanks @emmanuelballery, I have fixed this issue.

ziscloud avatar Aug 11 '15 08:08 ziscloud

@ziscloud getting a 'refresh' is not defined after the 1.1.4 update =/

silentFred avatar Aug 11 '15 12:08 silentFred

thanks for you update, I found the this issut is caused by slimscroll itself. line 103 and 104: bar = me.closest('.' + o.barClass); rail = me.closest('.' + o.railClass); it can not find object, it should be: bar = me.parent().find('.' + o.barClass); rail = me.parent().find('.' + o.railClass);

I will raise a merge request to slimscroll.

ziscloud avatar Aug 12 '15 18:08 ziscloud

Thanks @ziscloud! =)

silentFred avatar Aug 13 '15 06:08 silentFred