Skip to content

Commit df32c95

Browse files
committed
1.2.6
* Fixed touchscreen devices scrolling when drawing the signature
1 parent 188bc80 commit df32c95

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Canvas.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@
169169
})
170170
}}
171171
on:mouseup={handleEnd}
172-
on:touchend={handleEnd}
172+
on:touchend|preventDefault={handleEnd}
173173
on:mouseleave={handleEnd}
174174
on:mousemove={handleMove}
175-
on:touchmove={e => {
175+
on:touchmove|preventDefault={e => {
176176
const { clientX, clientY } = e.touches[0]
177177
handleMove({
178178
offsetX: clientX - l,
179179
offsetY: clientY - t
180-
})
180+
})
181181
}}
182182
/>

0 commit comments

Comments
 (0)