cheerpj-meta icon indicating copy to clipboard operation
cheerpj-meta copied to clipboard

java.awt.Button, java.awt.Choice, etc. do not work on mobile browsers

Open jiver18 opened this issue 1 year ago • 2 comments

I am new to Cheerpj.

I have an existing applet that contains elements like java.awt.Choice, java.awt.Button, and java.awt.ScrollPane. These appear to function correctly on desktop browsers. However, they do not function on Safari on iPads or Chrome on Android.

The simplest example is that you cannot change the value of a java.awt.Choice drop down list. Clicking on the list has no effect when using Safari on iPad or Chrome on Android. Clicking on java.awt.Button elements also appears to have no effect. Ultimately the applet should pop up a java.awt.ScrollPane with embedded graphics.

jiver18 avatar May 04 '23 19:05 jiver18

Touch events are not correctly handled for AWT components, this can be fixed in principle but it has never been a priority since AWT interfaces are designed for desktop and work very poorly on mobile anyway.

Our current focus is fully on the upcoming CheerpJ 3.0, a new architecture designed to be faster, simpler to use and scalable to Java 9+. I'll keep this bug open, but we won't be able to schedule any work on it for the time being.

alexp-sssup avatar May 04 '23 21:05 alexp-sssup

Thank you for the quick response. It is enough for me to know that it is a known issue.

On Thu, May 4, 2023 at 3:31 PM Alessandro Pignotti @.***> wrote:

Touch events are not correctly handled for AWT components, this can be fixed in principle but it has never been a priority since AWT interfaces are designed for desktop and work very poorly on mobile anyway.

Our current focus is fully on the upcoming CheerpJ 3.0, a new architecture designed to be faster, simpler to use and scalable to Java 9+. I'll keep this bug open, but we won't be able to schedule any work on it for the time being.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jiver18 avatar May 04 '23 21:05 jiver18