Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

decelerated panning on iOS #34

Closed
incanus opened this issue Feb 4, 2014 · 5 comments
Closed

decelerated panning on iOS #34

incanus opened this issue Feb 4, 2014 · 5 comments
Assignees
Labels

Comments

@incanus
Copy link
Contributor

incanus commented Feb 4, 2014

Involves tying a dummy UIScrollView delegate to the CADisplayLink render pass.

@incanus
Copy link
Contributor Author

incanus commented Feb 5, 2014

@incanus
Copy link
Contributor Author

incanus commented Feb 5, 2014

We should actually not complicate this with a scroll view and instead use the -[UIPanGestureRecognizer velocityInView:] API for this.

@incanus incanus closed this as completed in a95f0a8 Feb 6, 2014
@incanus
Copy link
Contributor Author

incanus commented Feb 6, 2014

This could benefit from both alternative timing curves and cancelable animations during successive pans, but those doesn't exist yet in util::animation. Will revisit when they do.

@kkaefer
Copy link
Contributor

kkaefer commented Feb 7, 2014

@incanus Can you please describe what you're going to need exactly? Do they just have to be cancellable, or should we somehow add several animations into one?

@incanus
Copy link
Contributor Author

incanus commented Feb 7, 2014

I don't think (yet) that animations will need to be combined, but here's a cancellation scenario:

  • User pans and releases
  • Momentum causes view to coast to a stop
  • Before the stop, user pans in the opposite direction
  • Currently, the animated coast needs to stop before the other direction takes effect.

For timing curves, ease out makes the most sense for inertial panning and zooming.

kkaefer added a commit that referenced this issue Feb 7, 2014
This was referenced Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants