RFR: 8262023: Scrolled button is pressed using Monocle on Raspberry Pi with Touchscreen

Johan Vos jvos at openjdk.java.net
Sun Apr 18 10:57:08 UTC 2021


On Fri, 26 Feb 2021 16:47:55 GMT, John Neffenger <jgneff at openjdk.org> wrote:

> > What is the expected behavior?
> 
> I think that's why I never raised the issue. I let the bug train me to avoid it! For better or for worse, I think the only answer to your question is whatever Android and iOS do.

I agree it's good looking at how it is done on other platforms. It's still not clear to me (as in: I can't put it in an algorithm): if you say that the button is "fired" only when the release location is very close to the touch-start location, then it occurs to me that somehow there could have been other events that caused the location to change slightly, but don't these events lead to DRAG events?
That would then contradict the second statement: whenever a drag is detected, there is no button-fired action at all.

-------------

PR: https://git.openjdk.java.net/jfx/pull/406


More information about the openjfx-dev mailing list