jkuri / ngSlimscroll

AngularJS implementation of slimScroll
GNU General Public License v2.0
41 stars 15 forks source link

Feature Requests: NG-Repeat + auto-resize, scroll-to, momentum touch scrolling #7

Open davefmoore opened 9 years ago

davefmoore commented 9 years ago

Jan, I have always been a huge fan of jq Slimscroll and I appreciate you developing a angular version. Shockingly, the pure angular scroll directives seem to all be incomplete mainly for touch devices. In my case, I really only use a scroll for a chat application.. hints the feature requests.

  1. Support NG-Repeat - I tried this on NG-repeat and it doesn't update
  2. Auto-Resize - basically, if a new DOM node is added or removed, update the H/W
  3. Scroll-to - most chat applications scroll-to bottom. It would be nice to have scroll top|bottom|left|right depending on which scroll you were using... here is a good example: https://github.com/Luegg/angularjs-scroll-glue
  4. Momentum Scroll - I tested this on touch and it was pretty choppy... I am not sure if adding [overflow-y: scroll; -webkit-overflow-scrolling: touch;] would work, but here is a good example of faking this. http://ajoslin.github.io/angular-scrolly/demo/
jkuri commented 9 years ago

Hi, To be honest I never tested this directive on any other touch device than on my phone (iOS) and seemed to work fine. Yes, you are right, this directive is incomplete and it will be developed further when I will have time (weekends). Thanks for pointing out feature requests, I will keep you informed about the progress under this issue.

davefmoore commented 9 years ago

Thanks!

From: Jan Kuri notifications@github.com<mailto:notifications@github.com> Reply-To: jkuri/ngSlimscroll reply@reply.github.com<mailto:reply@reply.github.com> Date: Monday, June 22, 2015 at 6:46 PM To: jkuri/ngSlimscroll ngSlimscroll@noreply.github.com<mailto:ngSlimscroll@noreply.github.com> Cc: David Moore david.moore@scripbe.com<mailto:david.moore@scripbe.com> Subject: Re: [ngSlimscroll] Feature Requests: NG-Repeat + auto-resize, scroll-to, momentum touch scrolling (#7)

Hi, To be honest I never tested this directive on any other touch device than on my phone (iOS) and seemed to work fine. Yes, you are right, this directive is incomplete and it will be developed further when I will have time (weekends). Thanks for pointing out feature requests, I will keep you informed about the progress under this issue.

Reply to this email directly or view it on GitHubhttps://github.com/jkuri/ngSlimscroll/issues/7#issuecomment-114305513.

jkuri commented 9 years ago

Dave, please check this [https://github.com/lawler/ngSlimscroll/commit/4b41464693ff7eee6274779a11ba15de27de66b9] about auto-resize.

djoks commented 8 years ago

Auto resize not working for me with ng-repeat even witht hat solution, container has a height of 100% of parent.