Re: -magnifyWithEvent: changed in Yosemite?
Re: -magnifyWithEvent: changed in Yosemite?
- Subject: Re: -magnifyWithEvent: changed in Yosemite?
- From: Steve Mills <email@hidden>
- Date: Sun, 16 Nov 2014 17:34:41 -0600
> On Nov 16, 2014, at 16:58, Graham Cox <email@hidden> 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@hidden)
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:
This email sent to email@hidden