Skip to content

Commit 0bfc0e2

Browse files
committed
Use onPointerDown (etc.) instead of onMouseDown (etc.)
1 parent 4b66941 commit 0bfc0e2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function App() {
155155
return (
156156
<StyledCanvas
157157
ref={setCanvasEl}
158-
onMouseDown={e => {
158+
onPointerDown={e => {
159159
if (!ctx) return
160160

161161
const mousePoint = getMousePoint(ctx, e)
@@ -166,7 +166,7 @@ function App() {
166166
clickedPath: findClickedScreenOrPattern(state, mousePoint),
167167
})
168168
}}
169-
onMouseUp={e => {
169+
onPointerUp={e => {
170170
if (!ctx) return
171171
if (!draftClick) return
172172

@@ -185,7 +185,7 @@ function App() {
185185

186186
setState(prevState => getDraftState(prevState, draftClick, mousePoint))
187187
}}
188-
onMouseMove={e => {
188+
onPointerMove={e => {
189189
if (!ctx) return
190190

191191
mousePositionRef.current = getMousePoint(ctx, e)

0 commit comments

Comments
 (0)