> On Nov 16, 2014, at 16:58, Graham Cox <[email protected]> wrote: > > I've tried throtlling the events down so that those that arrive too quickly > are discarded. This seems to work, my zooming is still smooth and no longer > lags even when I handle only at about 1/10s. This might be a reasonable > solution, but if there is a better one, it'd be nice to know.
That's what I did as well. I keep a running sum of the zoom values and only apply it every so many milliseconds, and install a timer that fires to take care of the last few zooms that might not have been applied. Yes, it's pretty ridiculous how quickly they send the events in 10.10, rather than doing any sort of throttling themselves. 1 second's worth of pinching can result in zoom redraws that seem to slowly continue on for many seconds. Bad Apple! No biscuit! Steve via iPad _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
