avokicchi / jquery-drawr

JQuery dRawr is a jquery plugin to turn any canvas element into a drawing area with a lot of useful tools and brushes.
MIT License
40 stars 20 forks source link

Support 3d touch #44

Closed avokicchi closed 3 years ago

avokicchi commented 3 years ago

testing needed with force values on iPad - oddly enough the fairphone 3 reports working "force" values as well, but they are unusably low. maybe this is standard? in that case I can multiply and implement.

//TODO: add support for 3D touch of apple and other devices (oddly enough, the fairphone 3 seems to support this) /*if(typeof event.originalEvent.touches[0].force!=="undefined" && force > 0){ this.pen_pressure=true;//this works, but at least on fairphone, the values are too low. testing needed on iOS devices. }*/

avokicchi commented 3 years ago

Gonna just re-enable 3d touch support and add a toggle for pressure sensitivity. Can't do much about hardware that sends faulty values.