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.
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.
- relates to
-
JDK-8094517 List on touch screen selects item on panning
-
- Resolved
-