mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

How to call multiple methods in scrollbar initializing? #40

Closed justin-john closed 10 years ago

justin-john commented 10 years ago

Can we call more than one method in scrollbar initializing?

For example I have to call scrollToY and ScrollToX parallely. I know there is scrollToXY method present here, that is not in my scope. We can do it like below, but it can initialize one method at a time.

$(".container").customScrollbar("scrollToY", 200);
//OR
$(".container").customScrollbar("scrollToX", 200);

Can I call something like below?

$(".container").customScrollbar({ scrollToX:  200, scrollToY: 150});
mzubala commented 10 years ago

No, you have to call one after another like in your first example.

justin-john commented 10 years ago

@mzubala Thank you.