jQuery-slimScroll icon indicating copy to clipboard operation
jQuery-slimScroll copied to clipboard

[NFR] slimscroll().scrollTo(element) method

Open temuri416 opened this issue 9 years ago • 5 comments

Hi,

Thanks for the great plugin!

It would be nice to have an API method that would scroll to either pixel position or element inside scrollable area:

$(scrolledArea).slimScroll().scrollTo($('#el'));
$(scrolledArea).slimScroll().scrollTo('200px');

Cheers!

temuri416 avatar Jun 19 '15 14:06 temuri416

+1 jquery-scrollintoview does not work with this plugin

dotnetwise avatar Nov 10 '15 13:11 dotnetwise

I'm facing the same issue.

umair-khanzada avatar Dec 23 '16 14:12 umair-khanzada

I handle it myself. This works for me:

var scrollToVal = $(scrolledArea).scrollTop() + $('#el').position().top;
$(scrolledArea).slimScroll({ scrollTo : scrollToVal + 'px' });

tmisheva avatar Jan 20 '17 11:01 tmisheva

I handle it myself. This works for me:

var scrollToVal = $(scrolledArea).scrollTop() + $('#el').position().top;
$(scrolledArea).slimScroll({ scrollTo : scrollToVal + 'px' });

Hi, i have tried this using dynamic px & sessionStorage, But when I scrolledUp in menu div it resetting to top of menuBar every time is not user friendly. I used fixed-sidebar with slimScroll. Any help regading this?

mbsankar84 avatar Sep 24 '19 09:09 mbsankar84

Would be better if there is option to scroll to bottom always to bottom/end like e chat window.

ashikiqbal avatar Nov 19 '19 18:11 ashikiqbal