Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return getScrollView or Make More $ionicScrollDelegate Info Public #1117

Closed
calendee opened this issue Apr 11, 2014 · 4 comments
Closed

Return getScrollView or Make More $ionicScrollDelegate Info Public #1117

calendee opened this issue Apr 11, 2014 · 4 comments

Comments

@calendee
Copy link

There was a forum post a few days requesting more info about the scroll view.

http://forum.ionicframework.com/t/accessing-scroll-position/2796/3

I didn't think a lot of it at the time. However, I realized I'm already using some old $ionicScrollDelegate info from a pre-beta release that is no longer available.

Example :

$ionicScrollDelegate.getScrollView($scope).__lastTouchMove;

There is lots of useful info inside the scroll that can help developers do different things. We need more available than just scrollTop, scrollBottom, rememberScrollPosition, etc.

Things like scroll height, last touch x, last touch x, etc. How can more of this info be accessed?

@ajoslin
Copy link
Contributor

ajoslin commented Apr 11, 2014

We could return the whole scrollView, sure. I'll make a getScrollPosition() too for convenience.

@tlancina
Copy link
Contributor

what about getValues()?

EDIT: derp they only have access to the scroll delegate. +1 for returning the whole scrollview.

@ajoslin
Copy link
Contributor

ajoslin commented Apr 11, 2014

@tlancina we don't have the scrollView documented right now - though we could consider doing that.

But also we didn't (until 1 commit ago) expose the scrollView on the $ionicScrollDelegate - now we do.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants