terra-draw icon indicating copy to clipboard operation
terra-draw copied to clipboard

Document which modes work on touch devices

Open JamesLMilner opened this issue 2 years ago • 8 comments

At the moment it is not clear that certain modes do not work on mobile/touch devices - we should look to document this. I would have to double check which modes do not work out the box, but at least Circle mode is not supported (see #106). I would assume rectangle mode suffers the same fate.

JamesLMilner avatar Oct 21 '23 20:10 JamesLMilner

Expanding on this, drawing lines/points/polygons doesn't seem to work in Chrome on touch devices - but do in Firefox

dob9601 avatar Dec 27 '23 21:12 dob9601

Hey @dob9601 thanks for sharing your experience. Could you potentially share more information about this as it doesn't sound intended! I am able to draw points lines and polygons on terradraw.io on Chrome on Android.

Can you share your exact device, OS and browser version so I can investigate? Also which adapter are you using Terra Draw with?

JamesLMilner avatar Dec 27 '23 22:12 JamesLMilner

Hey, A friend and I came across the behaviour when looking at the demo hosted on the terradraw docs (https://terradraw.io/). On both devices, the behaviour was identical with it working on Firefox (Android) but not Chrome (also Android).

I'm running Chrome 120.0.6099.144 on Android 14 (Pixel 7). Just checked and my friend was also running the same version of chrome.

dob9601 avatar Dec 27 '23 23:12 dob9601

https://github.com/JamesLMilner/terra-draw/assets/24723950/8a54e63e-7dea-4e7f-ad73-69c57dbec99f

I've recorded a quick demo just in case I'm missing something

dob9601 avatar Dec 27 '23 23:12 dob9601

@dob9601 this is strange! Thank you for the info and the video, very helpful. I am also running Chrome 120 on Android and not seeing this issue weirdly. Let me do some more digging and get back to you. If you have any additional information you may help to debug please feel free to share in the meantime :)

JamesLMilner avatar Dec 27 '23 23:12 JamesLMilner

@dob9601 this is strange! Thank you for the info and the video, very helpful. I am also running Chrome 120 on Android and not seeing this issue weirdly. Let me do some more digging and get back to you. If you have any additional information you may help to debug please feel free to share in the meantime :)

Not a problem! Feel free to reach out if you need any specific debug information

dob9601 avatar Dec 28 '23 00:12 dob9601

@dob9601 going to move this out a separate dedicated issue :) #153

JamesLMilner avatar Dec 28 '23 15:12 JamesLMilner

I've looked into this and it appears that Great Circle and Freehand are not supported on mobile. Also Rectangle and Circle mode, although working, do not have as nice a UX as when using a mouse. I think supporting Great Circle shouldn't be too complicated, however freehand may require more thought. We could also potentially think about how we improve the UX for Rectangle and Circle mode going forward.

JamesLMilner avatar Dec 31 '23 13:12 JamesLMilner

Currently on Android 13, only Select, Point, Line and Polygon are visible / working. Rectangle, Freehand and Circle are not available / working, based on using terradraw.io. I will add some notes to the Guides to this effect.

nickbearman avatar Jul 30 '24 12:07 nickbearman