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

TableView with custom cells (like CheckBox) propagates the mouse events to the controls in the cell while scrolling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 8u20
    • javafx
    • None

      When scrolling a TableView while touching first a custom cell like CheckBox, the checkbox gets focused. The best thing to do here is to wait for the touch to finish to see if there was a gesture or just a tap/click.

      One solutions is that we'd need to consume (synthesized) mouse pressed events until we know if there was a gesture or not and then re-fire them to the underlying control. If this would be a common case in other controls, it might be worth to implement some general utility class for holding and re-firing an event.
      Another approach is to fix this in other controls so that they focus on synthesized mouse release, not mouse pressed.

            Unassigned Unassigned
            msladecek Martin Sládeček
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: