-
Bug
-
Resolution: Fixed
-
P4
-
1.1.1
-
b01
-
generic
-
generic
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2015150 | 1.2.0 | Robi Khan | P4 | Resolved | Fixed | 1.2fcs |
The code in java.awt.container that redirects mouse events to
lightweight components does not give correct exit/enter
events when the mouse button enters or exits the component
during dragging.
This can easily be demonstrated by simply logging all events to
a lightweight component.
Instead of giving Enter/Exit events at the lightweight
component's boundary it generates them at the parent native
component's boundary.
The dragging case code needs to check whether the mouse is
inside the component and generate the appropriate events.
The Enter/Exit code also needs to suppress the spurious events.
When not dragging the events work fine as the code changes
the redirection target and sends the appropriate events. This
does not occur while dragging as the redirection target does
not change.
lightweight components does not give correct exit/enter
events when the mouse button enters or exits the component
during dragging.
This can easily be demonstrated by simply logging all events to
a lightweight component.
Instead of giving Enter/Exit events at the lightweight
component's boundary it generates them at the parent native
component's boundary.
The dragging case code needs to check whether the mouse is
inside the component and generate the appropriate events.
The Enter/Exit code also needs to suppress the spurious events.
When not dragging the events work fine as the code changes
the redirection target and sends the appropriate events. This
does not occur while dragging as the redirection target does
not change.
- backported by
-
JDK-2015150 Lightweight components: Enter/Exit mouse events incorrectly reported during drag
- Resolved