We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b66941 commit 0bfc0e2Copy full SHA for 0bfc0e2
1 file changed
src/App.tsx
@@ -155,7 +155,7 @@ function App() {
155
return (
156
<StyledCanvas
157
ref={setCanvasEl}
158
- onMouseDown={e => {
+ onPointerDown={e => {
159
if (!ctx) return
160
161
const mousePoint = getMousePoint(ctx, e)
@@ -166,7 +166,7 @@ function App() {
166
clickedPath: findClickedScreenOrPattern(state, mousePoint),
167
})
168
}}
169
- onMouseUp={e => {
+ onPointerUp={e => {
170
171
if (!draftClick) return
172
@@ -185,7 +185,7 @@ function App() {
185
186
setState(prevState => getDraftState(prevState, draftClick, mousePoint))
187
188
- onMouseMove={e => {
+ onPointerMove={e => {
189
190
191
mousePositionRef.current = getMousePoint(ctx, e)
0 commit comments