arch-inc / fabricjs-psbrush

Fabric.js用の感圧ブラシ実装 / A lightweight pressure-sensitive brush implementation for Fabric.js
https://arch-inc.github.io/fabricjs-psbrush/
Other
62 stars 24 forks source link

Not working with touch #20

Closed johannbuscail closed 3 years ago

johannbuscail commented 3 years ago

Hi. I really appreciate the effort you put into this library. On my iPad Pro, it works perfectly with the stylus but when using touch, the line is really thin (even if I set brush width to 100). Here is a screenshot: image I have no idea why it does that because on my Surface Pro, it works perfectly with touch. Maybe instead of using the native API, you can use a library such as pressure.js which has a polyfill when pressure is not available and uses time (even though I don't think it's adapted for this use case) Thanks !

Might help: https://developer.apple.com/forums/thread/31124

johannbuscail commented 3 years ago

@arcatdmz Any update on this issue ?

arcatdmz commented 3 years ago

@johannb75 I believe the issue is fixed with v0.0.18! Please feel free to re-open if you think the issue persists.