nesbox / TIC-80

TIC-80 is a fantasy computer for making, playing and sharing tiny games.
https://tic80.com
MIT License
4.81k stars 459 forks source link

Android Touch Drags Path #2014

Open Gabby-Paolucci opened 1 year ago

Gabby-Paolucci commented 1 year ago

On Android, using touch, the path of the curser travels from where was touched last to the new location while clicking. What this means is that drawing sprites is nearly impossible—you cannot edit a pixel at a time, only in lines as you move towards the center of the sprite.

I'm wondering if we could get the cursor to not select while traveling, to match the normal behavior in touch environments.

Here's a capture of the effect in action, where I'm trying to draw individual pixels but get lines of travel: capture

potassium-shot commented 8 months ago

It seems to only happen when the finger goes outside the drawing area while still being down. I'll try to investigate the code for a potential fix if I find enough time

sogaiu commented 8 months ago

Possibly related:

If it's the same, nesbox may have addressed it.

potassium-shot commented 8 months ago

The issue does resemble a lot #2269, but it definitely still occurs on the latest version on Android. (1.1.2736, even-though it says 1.1.2739 in the app)