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

Double-click is reported as two single-clicks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 7u6
    • fx2.1
    • javafx
    • javafx-sdk2.1.0-beta-b10, Windwos 7 x64

    Description

      If I replace node under mouse cursor on first click I will always get clickCount = 1 even for double click. See the attached application.

      On double click:
      MouseEvent [source = javafx.scene.Scene@53b5e629, target = Rectangle@23529466, eventType = MOUSE_CLICKED, consumed = false, x = 67.0, y = 47.0, button = PRIMARY]
      MouseEvent [source = javafx.scene.Scene@53b5e629, target = Rectangle@79ff3358, eventType = MOUSE_CLICKED, consumed = false, x = 67.0, y = 47.0, button = PRIMARY]

      On triple click:
      MouseEvent [source = javafx.scene.Scene@53b5e629, target = Rectangle@23529466, eventType = MOUSE_CLICKED, consumed = false, x = 67.0, y = 47.0, button = PRIMARY]
      MouseEvent [source = javafx.scene.Scene@53b5e629, target = Rectangle@79ff3358, eventType = MOUSE_CLICKED, consumed = false, x = 67.0, y = 47.0, button = PRIMARY]
      MouseEvent [source = javafx.scene.Scene@53b5e629, target = Rectangle@23529466, eventType = MOUSE_CLICKED, consumed = false, x = 67.0, y = 47.0, button = PRIMARY]

      Attachments

        Activity

          People

            psafrata Pavel Ĺ afrata
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: