In the past, I've always hated that non-Mac apps (e.g. CAD programs, Google 
Maps, etc.) misinterpret the scroll ball on my Mighty Mouse, or two-finger 
gestures on the trackpad, as zoom and not pan.

But there is a certain convenience to being able to zoom precisely with these 
gestures. I'd like to interpret vertical scroll as zoom in my 3D app, if the 
user is holding down a meta key (or is otherwise in a zoom mode).

I'm using SCNView, which AFAICT has no zoom functionality. I'm hoping I an 
intercept the scroll events and use that to reposition my camera, but I don't 
actually know how to do that. That is, what's the NSView method to override to 
capture scroll events? Is it -scrollWheel:, or 

For robustness, I'd like to have any momentum continue to apply to the zoom 
operation, even if the user releases the meta key before the momentum scroll 
ends.

What do you guys think about this UX, pan-vs-zoom interpretations of scroll 
events?

Thanks,

-- 
Rick Mann
[email protected]



_______________________________________________

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]

Reply via email to