On Feb 23, 2012, at 14:15 , Markus Spoettl wrote:

> Mouse movement highlighting must happen when the mouse moves. At that time, 
> only the mouse move coordinates are known. They correspond with what happens 
> on the screen, so highlighting works as expected.
> 
> Now a mouse-down comes along with different coordinates. That change in 
> coordinates is not reflected visually on screen (no cursor movement, no 
> highlight changes). It leads to other objects than the one highlighted one 
> being manipulated. Really confusing to the end user.

What I'm saying is, have mouseDown invoke cursorUpdate with the mouseDown 
event, so that if the position is different from the last real 
cursorUpdate/mouseMoved, the highlighted item will change to the item that's 
being dragged.

That may sound wrong, but it's the same behavior as if the mouse was really 
moving when you pressed the button.

Would I be correct in saying that the behavior you're asking for is as follows?

The mouse location reported in any event following mouseMoved or mouseDragged 
(except another mouseMoved or mouseDragged, of course) must be the same as the 
mouse location reported by the preceding mouseMoved or mouseDragged event.

Although the above might have been mostly true in the past, I doubt it was ever 
guaranteed in any way. However, even if it were true (or for that matter, even 
if your mouseDown called cursorUpdate/mouseMoved), it wouldn't truly solve your 
problem. It would mean that the dragged item is highlighted, not that the item 
the user attempted to click on (and was highlighted at the start of the 
attempt, perhaps) is dragged. See what I mean?

> PS: None of your or my replies seem to make it through to the list although 
> both you an I cc the list. Not sure why that is.

I think the list is just still slow. Or again. Other things are coming through.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to