konvajs / react-konva

React + Canvas = Love. JavaScript library for drawing complex canvas graphics using React.
https://konvajs.github.io/docs/react/
MIT License
5.8k stars 260 forks source link

OnTouchStart does not contain touches #788

Closed mfranzen0906 closed 10 months ago

mfranzen0906 commented 10 months ago

I want to get access to the touches Array https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent But the onTouchStart function does not return this.

lavrton commented 10 months ago
onTouchStart={(e) => {
   const nativeEvent = e.evt;
   const { touches } = nativeEvent;
}}