On Thu, 18 Aug 2011 15:49:29 -0700, Rick Mann rm...@latencyzero.com said:
Hi,
I'm implementing drag drop functionality on one of my views, and I'd like to
autoscroll the containing view when the user lingers near an edge.
My book, for which the code examples are downloadable from github,
On 19/08/2011, at 8:49 AM, Rick Mann wrote:
If the user enters the auto-sroll area, start a timer
If they leave the area, invalidate the timer
If the timer fires, then start another, repeating timer that just adjusts the
contentOffset of the scroll view in the appropriate direction
If they
On Aug 25, 2011, at 17:42 , Graham Cox wrote:
This is no more complicated than having two timers, and will likely be easier
to manage - I've found that adding too many timers to a run loop can end up
hitting performance, but even if it doesn't, it just seems wrong when one
will do.
Hmm.
On 26/08/2011, at 10:48 AM, Rick Mann wrote:
Hmm. I think I disagree on this point. Two timers makes it very clear what's
going on in the code, and I don't have to worry about the math. Moreover, I
don't enable a rapid timer until it's actually needed.
0.1 second (or so) is definitely not
Hi,
I'm implementing drag drop functionality on one of my views, and I'd like to
autoscroll the containing view when the user lingers near an edge. Is there any
support built-in to iOS 4+ for this?
If not, what is the recommended approach? I thought I'd do something like this:
If the user