-
Notifications
You must be signed in to change notification settings - Fork 148
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
Idea: add "on_stopped_scrolling" and "on_scroll" to PM::TableScreen #640
Labels
Comments
I like it! 👍 |
In addition to this, and referring this question... why not implement this way ? def scrollViewDidScroll(scroll_view)
current_y = scroll_view.contentOffset.y
@previous_y ||= 0
if self.respond_to?(:on_scroll)
try :on_scroll
elsif current_y > @previous_y
try :on_scroll_down
else
try :on_scroll_up
end
# keep track of current_y
@previous_y = current_y
end |
@bmichotte Yes! Also, we could give an optional parameter for velocity. |
Nice idea. |
👍 So is there any ETA on this? |
Feel free to tackle it, @edenvicary ! I don't intend to anytime soon, so it's a great way to contribute. |
@afestein could be a good way to clean up some of that code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What think ye?
The text was updated successfully, but these errors were encountered: