Replies: 1 comment
-
Hey @fokoz, If you are using <SkiaView
onTouchMove={(e) => {
const isPencil = e.nativeEvent.force > 0;
// Or find the event coming from the pencil
const penEvent = e.nativeEvent.touches.find(i => i.force > 0);
if (isPencil) {
// position of the touch, relative to the element
const posInElement = vec(e.nativeEvent.locationX, e.nativeEvent.locationY);
// osition of the touch, relative to the screen
const posInScreen = vec(e.nativeEvent.pageX, e.nativeEvent.pageY);
//...
}
}}
/> Note: I've been using this approach here and it's working nicely so far. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to resolve this issue ?
Thank you so much.
Beta Was this translation helpful? Give feedback.
All reactions