Directional-Boring icon indicating copy to clipboard operation
Directional-Boring copied to clipboard

Interface adapted to mobile screens

Open alin256 opened this issue 3 years ago • 11 comments

@DenisovichDev can we update the interface for the phone screen.

I am thinking to have a large toggle bias button in the middle and all the other controls closer to the bottom:

interface-concept

@holsaeter

alin256 avatar Jul 08 '22 10:07 alin256

Absolutely! It's a great concept, I'll start working on it. Might have change some bits on sketch.js to adapt on mobile devices

DenisovichDev avatar Jul 08 '22 16:07 DenisovichDev

I tried it on iPad/iPhone yesterday, and the button interface is laggy. I suppose it is an issue with WebKit touch implementation.

Did anyone try on Android?

I suggest having some kind of direct touch controls on the main canvas for steering. Those seem to have much less lag in my testing.

alin256 avatar Jul 10 '22 10:07 alin256

Yes, I would agree! Should we detect mobile and serve a different view or create a version that works at any resolution / aspect ratio?

shiffman avatar Jul 10 '22 13:07 shiffman

Since it is a single-view application it is easier to just rescale it according to the screen and remove the scrolls.

We did a while ago for http://game.geosteering.no/geo/redirect The code is here: https://github.com/NORCE-Energy/geosteering-game-gui

P5's support for scaling is quite good. So it is a matter of preventing the scrolling in the CSS. I can try something soon.

alin256 avatar Jul 10 '22 14:07 alin256

I feel like with keyboard and click-on-interface controls we can and should get rid of all buttons except for pull back

Demo here: https://al-digital.no/Directional-Boring/

image

alin256 avatar Jul 10 '22 15:07 alin256

@DenisovichDev the improved CSS did not scale correctly on iPhone. Do you know how to fix? Uploading A032FF69-CF6D-4AA5-A5CB-440656DA1DF0.png…

alin256 avatar Jul 14 '22 17:07 alin256

2821AAC8-099C-4BA6-B4F7-5A56E0B50E0A

alin256 avatar Jul 14 '22 17:07 alin256

That is really weird... It's working fine in Android. I'll look into it

DenisovichDev avatar Jul 14 '22 17:07 DenisovichDev

It's working fine in Android. I'll look into it

Can you check that the updated version did not become worse on Android?

alin256 avatar Sep 27 '22 11:09 alin256

It's not something Android specific, but the style sheets need work. I'll get into it tonight

DenisovichDev avatar Sep 29 '22 11:09 DenisovichDev

For completeness, the solution to the iOS problems was in a magic line in the HTML file:

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

and a magic line in the CSS file

  -webkit-text-size-adjust: none;

alin256 avatar Sep 29 '22 11:09 alin256