rd-dev-ukraine / angular-io-slimscroll

Customizable slimScroll directive for Angular 2.
MIT License
18 stars 19 forks source link

auto scroll to bottom on refresh #2

Closed Omikhleia closed 7 years ago

Omikhleia commented 7 years ago

Good work, nice directive which works as a charm and does its job as it should, nothing more, nothing less!

As a possible enhancement suggestion: An option for automatically moving to the bottom of the scrollable content when updated would be nice, for usual cases where new data is just appended to it (e.g. the typical todo list).

Just having the same two lines as for the start option copied to the refresh() method seems to do the trick for me. (Well, it does cause the scrollbar to be briefly displayed, but that might be a convenient visual feedback to notice the view update). I also wonder if there are alternatives to the interval (1s) between checks for changes.

rd-dev-ukraine commented 7 years ago

@Omikhleia thanks, we will fix it

rd-dev-ukraine commented 7 years ago

We added the autoScrollToBottom feature in version 1.2.0. :)