antfu / drauu

Headless SVG-based drawboard in browser.
https://drauu.netlify.app/
MIT License
1.2k stars 64 forks source link

fix: multitouch events draw incorrectly #33

Closed haykkh closed 1 year ago

haykkh commented 1 year ago

Description

In #32 we detail the current bug regarding drawing with multiple touch pointers.

In this PR we aim to handle this by keeping track of the original touch pointer's ID in the eventStart method, and ignoring subsequent events if the original pointer ID exists and is different from the current event's pointer ID

Linked Issues

32

Additional context