Skip to content

Commit

Permalink
Fix canvas jumps on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
jerosoler committed Jun 30, 2022
1 parent fb7568a commit 59a8e2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/drawflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ export default class Drawflow {
this.pos_x_start = e.touches[0].clientX;
this.pos_y = e.touches[0].clientY;
this.pos_y_start = e.touches[0].clientY;
this.mouse_x = e.touches[0].clientX;
this.mouse_y = e.touches[0].clientY;
} else {
this.pos_x = e.clientX;
this.pos_x_start = e.clientX;
Expand Down

0 comments on commit 59a8e2c

Please sign in to comment.