szimek / signature_pad

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

Detecting pen force #704

Open milengg opened 1 year ago

milengg commented 1 year ago

I see that there is new API that allow detect force of the pen - touch.force. Is it possible to use such thing to receive more authentic sign?

UziTech commented 1 year ago

Pressure is already a property in the data

UziTech commented 1 year ago

Currently only the velocity is used to determine the stroke width but we could use the force if we can figure out a good algorithm.

https://github.com/szimek/signature_pad/blob/11272b4a7ac0fe5ca88cba08b5046b8decc1201a/src/signature_pad.ts#L500-L502

BinoDino commented 1 year ago

Hi, is there any update on this issue?

UziTech commented 1 year ago

I don't think anyone has been working this.