Skip to content

Commit 59a8e2c

Browse files
committed
Fix canvas jumps on mobile
1 parent fb7568a commit 59a8e2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/drawflow.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ export default class Drawflow {
322322
this.pos_x_start = e.touches[0].clientX;
323323
this.pos_y = e.touches[0].clientY;
324324
this.pos_y_start = e.touches[0].clientY;
325+
this.mouse_x = e.touches[0].clientX;
326+
this.mouse_y = e.touches[0].clientY;
325327
} else {
326328
this.pos_x = e.clientX;
327329
this.pos_x_start = e.clientX;

0 commit comments

Comments
 (0)