FROM : Ricky Sharp
DATE : Thu Dec 23 22:10:55 2004
On Dec 23, 2004, at 11:18 AM, Christopher Drum wrote:
> In a previous posting I had asked for help with mouseEntered and
> mouseExited on a little color palette I was working on. My problem was
> the order in which mouseEntered and mouseExited are called changes
> depending upon the direction I move the mouse. The suggestion was to
> use mouseMoved instead to track the mouse location within my custom
> view and highlight color palette swatches using the mouse coordinates.
> (Originally I had a tracking rect for each individual color palette
> swatch)
Is it possible that your tracking rects overlapped? That may explain
the difference in the order of events if for each two rects, there was
an intersection of a 1-pixel wide strip.
Did you also see the problem when moving the mouse up and down?
When computing the tracking rects, try insetting them a bit as a test
and see if the problem still exists.
___________________________________________________________
Ricky A. Sharp mailto:<email_removed>
Instant Interactive(tm) http://www.instantinteractive.com
DATE : Thu Dec 23 22:10:55 2004
On Dec 23, 2004, at 11:18 AM, Christopher Drum wrote:
> In a previous posting I had asked for help with mouseEntered and
> mouseExited on a little color palette I was working on. My problem was
> the order in which mouseEntered and mouseExited are called changes
> depending upon the direction I move the mouse. The suggestion was to
> use mouseMoved instead to track the mouse location within my custom
> view and highlight color palette swatches using the mouse coordinates.
> (Originally I had a tracking rect for each individual color palette
> swatch)
Is it possible that your tracking rects overlapped? That may explain
the difference in the order of events if for each two rects, there was
an intersection of a 1-pixel wide strip.
Did you also see the problem when moving the mouse up and down?
When computing the tracking rects, try insetting them a bit as a test
and see if the problem still exists.
___________________________________________________________
Ricky A. Sharp mailto:<email_removed>
Instant Interactive(tm) http://www.instantinteractive.com
| Related mails | Author | Date |
|---|---|---|
| Christopher Drum | Dec 23, 18:18 | |
| Ricky Sharp | Dec 23, 22:10 | |
| Christopher Drum | Dec 23, 22:28 |






Cocoa mail archive

