-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
1.4.0
-
generic, sparc
-
generic
Name: apR10133 Date: 07/23/2002
The current coalescing algorithm for the mouse drag/move events coalesce
the continuous sequence of the similar MOUSE_DRAG events into one at the
EventQueue.postEvent(). If mouse enter/exit the component while dragging
the sequence MOUSE_DRAG events will be mixed with MOUSE_ENTERED and
MOUSE_EXITED events and hence MOUSE_DRAG events will not be coalesced as
expected. We need more sophisticated coalescing algorithm which will allow
to ignore MOUSE_ENTERED and MOUSE_EXITED events for particular cases.
The example where it is necessary is JScrollBar. When you drag the scrollbar
any time you drag outside of the scrollbar area (user's hand is not steady
and it happen too often) a unique MouseDragged event is generated that is NOT
coalesced with any subsequent dragged events due to the problem described
above. It cause multiple unnecessary repaints of the scrollpane area.
(See the bug 4665225)
======================================================================
The current coalescing algorithm for the mouse drag/move events coalesce
the continuous sequence of the similar MOUSE_DRAG events into one at the
EventQueue.postEvent(). If mouse enter/exit the component while dragging
the sequence MOUSE_DRAG events will be mixed with MOUSE_ENTERED and
MOUSE_EXITED events and hence MOUSE_DRAG events will not be coalesced as
expected. We need more sophisticated coalescing algorithm which will allow
to ignore MOUSE_ENTERED and MOUSE_EXITED events for particular cases.
The example where it is necessary is JScrollBar. When you drag the scrollbar
any time you drag outside of the scrollbar area (user's hand is not steady
and it happen too often) a unique MouseDragged event is generated that is NOT
coalesced with any subsequent dragged events due to the problem described
above. It cause multiple unnecessary repaints of the scrollpane area.
(See the bug 4665225)
======================================================================
- duplicates
-
JDK-4665225 swing isn't coalescing some mouse drag events on scrollbars.
- Closed