sapphirecat / quilt-draw

Quarter-square triangle designer
https://sapphirecat.github.io/quilt-draw/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Touch/Pointer Events needed #1

Open sapphirecat opened 4 years ago

sapphirecat commented 4 years ago

The "hold mouse to paint" feature changed the event listener to mousedown, which is presumably what broke support for painting on touch devices. We need to detect support for the interfaces and install appropriate handlers: only pointer events if that interface is available; otherwise, mouse events and optionally touch events.

sapphirecat commented 4 years ago

Initial pass (Pointer Events only, zero touch-based testing) in 81ec11f

sapphirecat commented 4 years ago

We get events, but the hit targets are way off.