-
Notifications
You must be signed in to change notification settings - Fork 400
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
provide bounce effect for constraints #86
Comments
I don't need this (yet), so you will have to tackle this yourself, I guess... :) Maybe you could implement it as well in |
Well, I'm thinking it's not too crazy complex. Think of how overlays work -- even with deceleration, it sticks to the scrollview just fine. So we have a hidden scrollview which the map view observers and mirrors its Anyway, yeah, I'll take a look sometime soon. |
Per an idea over here, it would be cool if when NE/SW constraints were applied to the map view, the
UIScrollView
bounce behavior could be emulated, even though we're not really hitting the edge of thecontentView
but are using false constraints on the scroll view.I'm thinking maybe this could be accomplished with a second, invisible/offscreen scroll view with its pan gesture recognizer attached to the map view's scroll view, so that the fake's
contentView
truly hits its edges when the map view's hits its false constraints. Then, the fake's bounce behavior could be tracked and applied to the main's. Not sure if that makes sense, but hopefully it does :-)I'll try to take a crack at this if you like.
The text was updated successfully, but these errors were encountered: