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

PIT: List triggers MouseDragged events when dragging the scrollbar outside the component, XToolkit

    • b51
    • sparc
    • solaris_10
    • Verified

      I am running an application that shows a frame with a List and few other components. I am clicking on the scrollbar of the list and trying to drag it. As long as the mouse pointer is within the bounds of the component, no MouseDragged events are triggered. But when I drag it further outside the component, List starts triggering MouseDragged Events. This is incorrect. List should not trigger MouseDragged events when dragging a scrollbar.

      This behavior is noticed in the current PIT build (b45) on Solaris10-JDS and Solaris9-CDE. This is not reproducible on Motif toolkit.
      java version "1.6.0-awt.pit-int-awt-blade"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-awt-blade-df153228_21_Jul_2005_08_27-b00)
      Java HotSpot(TM) Server VM (build 1.6.0-ea-b43, mixed mode)

      I have attached a sample test to this bug report. Run the attached test with the above PIT build. You would see a frame with a List. Click on the scrollbar and drag it down. Keep dragging it till mouse pointer goes out of the component. You would see lot of MouseDragged events being triggered on the console.

      On the latest mustang promoted build (b43), the MouseDragged events are triggered by List regardless of whether mouse pointer is inside or outside the component. I think this was fixed as part of:
      6240151: XToolkit: Dragging the List scrollbar initiates DnD, but looks like it is still occuring when the mouse is dragged outside the component. Hence marking this as a PIT failure.

            dcherepanov Dmitry Cherepanov
            ggirishsunw Girish Girish (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: