Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4719016

Needs new coalescing algorithm for mouse drag/move events

XMLWordPrintable

    • 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)

      ======================================================================

            dav Andrei Dmitriev (Inactive)
            apikalev Andrey Pikalev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: