szimek / signature_pad

HTML5 canvas based smooth signature drawing
http://szimek.github.io/signature_pad/
MIT License
10.94k stars 2.11k forks source link

Wierd incremental draws #269

Closed vmexia closed 3 years ago

vmexia commented 7 years ago

Hello,

I'm having a kinda wierd behaviour on my mobile app. When I draw something on the canvas, on stoke finish, the previous state of the current draw gets incrementally drawn on the canvas.

First iteration Second iteration Third iteration

note: the red areas indicate the new element.

This is a cordova app with react. The version 1.5. of signature pad was working flowlessly, today I decided to update to the newest version (2.2.0) and this started to happen. Any idea of what might be the cause? I find it wierd because this doesn't happen when I'm debugging the app on chrome.

Best regards

szimek commented 7 years ago

No idea. Can you try to replicate it e.g. in https://jsfiddle.net/szimek/h80phxyr ?

vmexia commented 7 years ago

I don't know how to replicate it, but I do know that it only happens on the devices, when I test it on the computer it works well.

Edit1: I was finally able to find a workaround, when I have some time I will try to dive in and find out the cause.