Closed GoogleCodeExporter closed 9 years ago
This is a great idea. Others have asked about this before, too. If you have
some code you'd like to share, please run a diff against the latest code and
post the patch file here.
Original comment by eskr...@mac.com
on 5 May 2013 at 1:58
Ok; I'll clean it up and post the diff tomorrow.
-- Travis
Original comment by fisch0...@gmail.com
on 5 May 2013 at 2:35
Here's a diff for adding momentum panning to the scatter plot's x-range, as
well as enabling the option of elastic global ranges (only for the x-axis right
now).
Original comment by fisch0...@gmail.com
on 6 May 2013 at 5:51
Attachments:
Note: the changes to CPTScatterPlot.m are a different change; please disregard
in the diff.
Original comment by fisch0...@gmail.com
on 6 May 2013 at 5:51
I created a new branch called "momentumScrolling" and imported this patch.
Because it uses blocks, it will have to go in the release-2.0 branch when
finished.
We need to add support for elasticity on the y-axis, too, before we merge.
I also want to experiment with using CPTAnimation for both momentum and elastic
bounce-back. This would make it easy to use animation curves for a gradual
deceleration on the scrolling and a bounce effect at the global ranges. This
would also remove the block dependency and allow this feature to merge with the
default branch instead.
Original comment by eskr...@mac.com
on 11 May 2013 at 7:01
I've updated the branch to support both the x- and y- axes and use CPTAnimation
instead of blocks. Let me know what you think. We might need to tweak some of
the animation parameters—suggestions welcome.
Original comment by eskr...@mac.com
on 21 May 2013 at 12:12
LOoks awesome from my first read-through and definitely cleaner to use the
CPTAnimation; I'll try integrating it into my product and respond with more
feedback sometime in the next day.
One thing I think we'll need is delegate callbacks to notify the plot space
delegate that momentum has started / ended (I've already added this to my
original version). For instance, in my app, I want the y-axis to update w/ a
subtle animation only after momentum / elasticity ends and the scatter plot is
horizontally fixed.
Thanks!
-- Travis
Original comment by fisch0...@gmail.com
on 21 May 2013 at 12:38
This issue was closed by revision 33b18bd72fb1.
Original comment by eskr...@mac.com
on 27 May 2013 at 12:34
Original issue reported on code.google.com by
fisch0...@gmail.com
on 5 May 2013 at 12:11