tldraw / tldraw-v1

A tiny little drawing app. This is the original 2021-2022 version, released under MIT.
https://old.tldraw.com
MIT License
61 stars 36 forks source link

[bug] Can't drag canvas on laptop with touch display #75

Closed FinnRG closed 8 months ago

FinnRG commented 1 year ago

I'm currently using a laptop with a touchscreen, but dragging on my laptop touchscreen doesn't work the same as dragging on my phone or tablet. I looked into this, and it seems, that Firefox fires PointerDown and PointerMove events with the pointerType set to “touch” instead of touch events.

steveruizok commented 1 year ago

Thanks for the report. I believe we solved this on the beta site (beta.tldraw.com). Would you mind trying it there? We may be able to port back the solution from the beta to here; or else anyway it'll be good to know if it's outstanding on that next version.

FinnRG commented 1 year ago

I just tried the beta site and when I try to pan across the canvas with two fingers, it doesn't work. Instead, only one finger is recognized, and it's like I'm using a mouse.

FinnRG commented 1 year ago

@steveruizok I would like to try submitting a fix for this. Does it make sense to do this now, or should I wait until the current beta becomes stable?

linonetwo commented 1 year ago

@FinnRG Hi, how to drag the canvas? When I drag, it only creates a selection box.