~eliasnaur/scatter#4:
Clicking on input box in mobile is hard

Selecting an input box on mobile (android) is hard. I guess it select the input box based on precise selection, but with big fingers it doesn't work.

I guess we should try to do some fuzzy clicking (don't know the technical term)?

Status
REPORTED
Submitter
~dolanor
Assigned to
No-one
Submitted
4 months ago
Updated
4 months ago
Labels
No labels applied.

~eliasnaur 4 months ago

Commit 0325a8a61b added click and scroll padding to text.Editor widgets which should improve touch selection. If it's sufficient, you may close this bug. If not, you can play with the pointerPadding value in Gio's editor.go. Remember to add a replace for Gio to Scatter's go.mod:

$ go mod edit -replace gioui.org/ui=<path to your local gio checkout>

~dolanor 4 months ago

I updated the gioui.org and scatter.im with git pull. I did the go mod edit in the scatter.im directory. I replaced the pointerPadding with a value of ui.Dp(30). But running it in android didn't seem to change anything. Neither visually nor behaviourly. (I need to press 3 to 5 times on the Password field to get into it). Could it be that I did something wrong with the replace? My module-fu is very low, haven't had time to dig into it.

~eliasnaur 4 months ago

I updated the gioui.org and scatter.im with git pull. I did the go mod edit in the scatter.im directory. I replaced the pointerPadding with a value of ui.Dp(30). But running it in android didn't seem to change anything. Neither visually nor behaviourly. (I need to press 3 to 5 times on the Password field to get into it). Could it be that I did something wrong with the replace? My module-fu is very low, haven't had time to dig into it.

One trick to detect whether you're using your local version of Gio is to introduce a compile error and see whether it is detected when running Scatter. I just tried to set the pointerPadding to 40 dp, which seemed to make the expected difference. Perhaps something else is wrong on your device. Is it the keyboard that is slow to appear? Does the problem apply to all input fields?

  • elias
Register here or Log in to comment, or comment via email.