Double-click is reported as two single-clicks

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 7u6
    • Affects Version/s: fx2.1
    • Component/s: javafx
    • Environment:

      javafx-sdk2.1.0-beta-b10, Windwos 7 x64

      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]

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

              Created:
              Updated:
              Resolved:
              Imported: