Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Support for pressure considered? #125

Open
anilgulecha opened this issue Sep 12, 2021 · 4 comments
Open

Support for pressure considered? #125

anilgulecha opened this issue Sep 12, 2021 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Projects

Comments

@anilgulecha
Copy link

Pls consider adding pressure based thickness support. Touch events can indicate the pressure on the drawing (which can be used to set the size of point/line/curve drawn).

Eg:
https://patrickhlauke.github.io/touch/tracker/tracker-force-pressure.html
https://viliusle.github.io/miniPaint/

This would make the component quite versatile.

@embiem embiem added the enhancement New feature or request label Nov 7, 2021
@embiem embiem added this to Needs triage in Triage Nov 7, 2021
@sifatdipta
Copy link

This honestly would make this program perfect! I actually came here to suggest this.

Would be awesome!

@embiem embiem added the good first issue Good for newcomers label Nov 8, 2021
@embiem
Copy link
Owner

embiem commented Nov 8, 2021

Should be a low-hanging fruit to add using https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pressure, right?

@sifatdipta
Copy link

Should be a low-hanging fruit to add using https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pressure, right?

Yeah I believe so, you can also look into https://github.com/stuyam/pressure

@sifatdipta
Copy link

Would adding a eraser mode be too difficult? I was playing with your codes earlier to come up with a solution for both pressure and eraser mode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Triage
Needs triage
Development

No branches or pull requests

3 participants