Re: Getting current mouse position after scroll
Re: Getting current mouse position after scroll
- Subject: Re: Getting current mouse position after scroll
- From: Rick Mann <email@hidden>
- Date: Wed, 1 Dec 2010 19:29:00 -0800
On Dec 1, 2010, at 19:22:01, John Joyce wrote:
> If the user is only scrolling, the mouse likely has not moved.
>
> But let me be the first to ask,
> What are you really trying to do?
I thought that would be obvious from my post. I update a label showing the mouse coordinates. This is relative to the large span of the view they're scrolling. Scrolling implicitly moves the mouse in this regard.
Imaging you're looking at a large map (so large that the scroll bars are active). As you move the cursor around the view, a field in the window updates to show the latitude and longitude of the point under the cursor.
Now if you scroll with the scroll wheel, you haven't moved the mouse, but the lat/lon under the cursor have changed. This is what I want to reflect.
--
Rick
_______________________________________________
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