Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000330 [tweak] Any major always 10-11-04 16:17 06-19-05 04:52
Reporter bert View Status public  
Assigned To
Priority normal Resolution fixed  
Status resolved  
Summary 0000330: Mouse leave events missing
Description "Will not return to black when list was clicked"
p := CDropDownList open.
p startScript: [p borderColor: Color red] when: #mouseEnter.
p startScript: [p borderColor: Color black] when: #mouseLeave.
Additional Information
Attached Files

- Relationships
has duplicate 0001106resolved  No mouse leave events when dragging 

- Notes
(0001476 - 713 - 755 - 755 - 755 - 755 - 755)
bert
05-11-05 16:34

I think I tracked down what happens:

The raw enter and leave events are actually generated - the code in in CMouseOverHandler is virtually bullet-proof. But, the regular mouseEnter / mouseLeave events are suppressed when the player does not have the mouse focus (CPrimCostume>>handleMouseLeave:). Now this is fine for enter events, but we would need corresponding leave event when the mouse focus changes.

I just posted a workaround, which is to suppress only enter events, but not leave events. So you might get leaves without enters, but that's much better than getting enter events not followed by a leave.

The Right Thing To Do would be to synthesize leave and enter events when the focus changes ...
 
(0001478 - 206 - 212 - 212 - 212 - 212 - 212)
bert
05-11-05 19:37

Oh well - my fix (which was taking out the mosueFocus check in CPrimCostume>>handleMouseLeave:) broke the menu bar which relies on the broken behavior ... I retracted it, we'll have the fix menu bars first.
 
(0001581 - 293 - 293 - 293 - 293 - 293 - 293)
andreas
06-04-05 08:29

I have committed a temporary workaround which will make the menus work after such a change to mouseLeave handling. HOWEVER, having tried it afterwards I don't think this is the issue. I was easily able to keep the spinner button for numeric tiles open even after moving out of the input field.
 
(0001648 - 17 - 17 - 17 - 17 - 17 - 17)
andreas
06-19-05 04:52

Fixed (finally!).
 

- Issue History
Date Modified Username Field Change
10-11-04 16:17 bert New Issue
05-11-05 12:36 bert Relationship added related to 0001106
05-11-05 16:31 bert Relationship replaced has duplicate 0001106
05-11-05 16:34 bert Note Added: 0001476
05-11-05 16:34 bert Status new => confirmed
05-11-05 16:34 bert Category  => Any
05-11-05 19:37 bert Note Added: 0001478
06-04-05 08:29 andreas Note Added: 0001581
06-19-05 04:52 andreas Status confirmed => resolved
06-19-05 04:52 andreas Resolution open => fixed
06-19-05 04:52 andreas Assigned To  => andreas
06-19-05 04:52 andreas Note Added: 0001648
06-19-05 04:52 andreas Assigned To andreas =>


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
57 total queries executed.
39 unique queries executed.
Powered by Mantis Bugtracker