RFR: 8217955: Problems with touch input and JavaFX 11

Tor (torbuntu) github.com+17347324+torbuntu at openjdk.java.net
Wed Apr 7 11:26:15 UTC 2021


On Wed, 7 Apr 2021 08:08:40 GMT, Johan Vos <jvos at openjdk.org> wrote:

>> If anyone would implement touch events, the change would need to be rolled back?
>> 
>> If you catch and consume touch events, would it also work?
>> 
>> I mean on `GlassApplication.cpp` -> `process_events`:
>> 
>> case GDK_TOUCH_BEGIN:
>> case GDK_TOUCH_UPDATE:
>> case GDK_TOUCH_END:
>> case GDK_TOUCH_CANCEL:
>>     gtk_main_do_event(event);
>> 
>> 
>> 
>> 
>> I don't own a touch device and `GTK_DEBUG=touchscreen` seems to work only with gtk signals (not gdk events).
>
>> If anyone would implement touch events, the change would need to be rolled back?
> 
> Yes, *if* touch events would be implemented properly at a native level, this change will need to be rolled back. This can be a follow-up issue, but it seems less urgent to me than this particular fix.

I've started working on trying to get the touch support available on Linux, and have a branch started here: https://github.com/torbuntu/jfx/tree/touch-support

Still trying to get everything wired up properly.

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

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


More information about the openjfx-dev mailing list