DPaint-js icon indicating copy to clipboard operation
DPaint-js copied to clipboard

Touch affordances

Open stuaxo opened this issue 2 years ago • 5 comments

Had a quick play on an Android phone and wonder how touch affordances could work.

There's a question of when to enable them, I'm not sure if there are APIs that help find the size of the screen, which might help.

In the case of sliders for instance, having a larger UI for it that appears when you touch the screen could be one place to start.

stuaxo avatar Jun 03 '23 10:06 stuaxo

Yeah... for small screen devices we need a completely different UI. I implemented the "bare minimum" for now and kind of ignored all the rest until the feature set is complete.

steffest avatar Jun 03 '23 11:06 steffest

I was surprised at how usable some of it is TBH. It's definitely possible to press the larger icons, though maybe two columns of them isn't ideal.

You're right that piecemeal isn't ideal... this is a bit of fluffy ticket anyway :)

stuaxo avatar Jun 03 '23 11:06 stuaxo

For reference here's a phone screenshot (smaller, in reality):

Screenshot_20230603-130603

stuaxo avatar Jun 03 '23 12:06 stuaxo

I can use it on a phone with the current UI size, what I find fustrating (and I don't know if it's a bug, that's why I'm sharing) is that I can't touch-drag to move the slider or color selector on the Color side-pane . I mean: I have to touch the exact spot where the color I want is, if I touch and drag, I drag the whole panels group.

This could be solved by adding HSB sliders below the pane, as all the other sliders I've tried work fine.

fccfc5d245c avatar Jul 06 '24 17:07 fccfc5d245c

In portrait orientation it might make sense for the icons to be along the bottom (especially on a phone as that's nearer your thumbs).

Touch is definitely a bit more than button size and placement, but this might help as an incremental improvement.

stuaxo avatar Jul 15 '24 10:07 stuaxo