RFR: 8242577: Cell selection fails on iOS most of the times
Johan Vos
jvos at openjdk.java.net
Thu Apr 16 21:16:23 UTC 2020
On Tue, 14 Apr 2020 10:31:18 GMT, Jose Pereda <jpereda at openjdk.org> wrote:
> There are cases when iOS sends one or more NSTouchPhaseMoved for a given touch event, in between NSTouchPhaseBegan and
> NSTouchPhaseEnded , even if the initial event location didn't change.
> By default, all these events are emulated as mouse enter/down, drag and up/exit events.
>
> However, when the user taps quickly or even holds steady on a cell, if these touch moved events are generated and sent
> as mouse drag events, the cell selection fails, as the flag `latePress` used in
> [CellBehaviorBase](https://github.com/openjdk/jfx/blob/master/modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/behavior/CellBehaviorBase.java#L191)
> is set to false, preventing the cell selection that should happen upon touch release event. This PR prevents emulating
> mouse drag events when the touch event doesn't change its location.
looks good.
-------------
Marked as reviewed by jvos (Reviewer).
PR: https://git.openjdk.java.net/jfx/pull/181
More information about the openjfx-dev
mailing list