rubiks-cube icon indicating copy to clipboard operation
rubiks-cube copied to clipboard

Android browser shows empty canvas

Open bcube2 opened this issue 10 years ago • 6 comments

Applet is not working on Android. Tests with other mobile OS would be good.

bcube2 avatar May 12 '15 07:05 bcube2

You're right. I see it's not WebGL in general, because the RubikPlayer WebGL version is working now. See http://rubikscubealgorithms.com/scripts/rubikplayer/

I find it hard to debug anything on Android, I don't really have the tools, but I'll see what I can find.

blonkm avatar May 12 '15 12:05 blonkm

"because the RubikPlayer WebGL version is working now. " RubikPlayer WebGL was always working as far as I know on both mobile devices, PCs and laptops.

bcube2 avatar May 12 '15 13:05 bcube2

It was working on his website, but the zip file to download was missing a lot of files. That one didn't work. I meant I downloaded all necessary files manually and got it to work on my server.

blonkm avatar May 12 '15 14:05 blonkm

One thing I could imagine it does not work on mobile device is this: I understand right-click and left-click as two distinct actions. Mobile users, however, have only one action: tapping. So there are possibly two actions for desktop users but only one action for mobile users => something could be broken for mobile users.

Werner´s applet, however, proves me wrong...

bcube2 avatar May 13 '15 06:05 bcube2

Mobiles have a touch event, completely distinct from mouse events. So if nothing is done for touch it won't work. I saw in Werner's code he specifically programs touch. Touch also has click and drag, but not right click (obviously). In place of right click usually long-touch is used.

blonkm avatar May 13 '15 11:05 blonkm

https://www.khronos.org/registry/webgl/sdk/tests/webgl-conformance-tests.html can be used to check on android what webgl functions are supported.

blonkm avatar Jun 13 '15 14:06 blonkm