Skip to content

Commit 8b23640

Browse files
committed
Merge pull request mobomo#4 from kmstrong/master
Fix for eraser bug in firefox
2 parents b1eb068 + fb45c50 commit 8b23640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sketch.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@
216216
$.sketch.tools.marker.onEvent.call this, e
217217
draw: (action)->
218218
oldcomposite = @context.globalCompositeOperation
219-
@context.globalCompositeOperation = "copy"
220-
action.color = "rgba(0,0,0,0)"
219+
@context.globalCompositeOperation = "destination-out"
220+
action.color = "rgba(0,0,0,1)"
221221
$.sketch.tools.marker.draw.call this, action
222222
@context.globalCompositeOperation = oldcomposite
223223
)(jQuery)

0 commit comments

Comments
 (0)