You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this library in an iPad app for making notes. When user is using an apple pencil to draw on canvas, i want to draw only with pencil touch not with any other gesture , for example , sometimes, i see unexpected lines and dots because of the palm resting on iPad screen.
Is there a way to handle this case? Is it possible to detect if the touch is from pencil or palm?
I kind of resolved it using another approach that helps in avoiding multiple touches. I updated the code in SketchCanvas.js file as follows :
Replaced if (!this.props.touchEnabled) return with if (!this.props.touchEnabled || gestureState.numberActiveTouches > 1) return in onPanResponderGrant, onPanResponderMove and onPanResponderRelease functions
I'm using this library in an iPad app for making notes. When user is using an apple pencil to draw on canvas, i want to draw only with pencil touch not with any other gesture , for example , sometimes, i see unexpected lines and dots because of the palm resting on iPad screen.
Is there a way to handle this case? Is it possible to detect if the touch is from pencil or palm?
@terrylinla @diego-caceres @jeanregisser @artdevgame @toblerpwn
The text was updated successfully, but these errors were encountered: