Skip to content

Commit

Permalink
applied fix for android browser bug
Browse files Browse the repository at this point in the history
as described in issue websanova#13
  • Loading branch information
eposjk committed Jul 16, 2015
1 parent 2d29f11 commit 0394a21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/wScratchPad.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,17 @@
//start the path for a drag
this.ctx.beginPath();
this.ctx.moveTo(e.pageX, e.pageY);

// force redraw to fix android browser bug
this.canvas.style.zIndex++;
},

_scratchMove: function (e) {
this.ctx.lineTo(e.pageX, e.pageY);
this.ctx.stroke();

// force redraw to fix android browser bug
this.canvas.style.zIndex++;
},

_scratchUp: function () {
Expand Down
2 changes: 1 addition & 1 deletion wScratchPad.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0394a21

Please sign in to comment.