-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drawing with two fingers jumps between points. Can't disable multitouch #787
Comments
If you would like to create a PR that would be awesome 😁👍 |
For testing you should need to update the tests with the new property and create a test that has both isPrimary true and false touches. signature_pad/tests/signature_pad.test.ts Line 266 in 267935b
|
What do you mean by Also where I should add the tests? |
Sorry I meant "IsPrimary (true and false) touches". Like set Ya user interactions describe sounds good |
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
When drawing with two fingers the touch points jump around both fingers.
Replication steps:
Result:
The signature creates a connecting line between two fingers.
See result screenshot:
Do this:
What is the expected behavior?
The expected behaviour is that multitouch should be disabled. Looking through the code, it is theoretically trying to prevent a double touch but it doesn't really work on a mobile device. The lines are created and can make a big black square.
Which versions of SignaturePad, and which browser / device are affected by this issue? Did this work in previous versions of SignaturePad?
Version: 5.0.3
Browser: All of them, iOS safari and Chrome as well as Android Chrome.
Some debugging information:
pointerType: "touch"
event.touches
norevent.targetTouches
they are undefinedThe text was updated successfully, but these errors were encountered: