Skip to content

Commit

Permalink
Fix redraw bug #19 (stokeStyle -> strokeStyle)
Browse files Browse the repository at this point in the history
  • Loading branch information
poshaughnessy committed Jul 27, 2017
1 parent 5788055 commit 76045bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ function onTouchMoveOrMouseMove(e) {
ctx.stroke();

drawEvents.push({
stokeStyle: ctx.strokeStyle,
strokeStyle: ctx.strokeStyle,
lineWidth: ctx.lineWidth,
tool: chosenTool,
x: coords1.x,
Expand Down Expand Up @@ -2125,7 +2125,6 @@ function redraw() {
ctx.lineJoin = 'round';
ctx.lineCap = 'round';
ctx.shadowBlur = ctx.tool === TOOL_BRUSH ? evt.lineWidth * 2 : 0;
console.log('shadowBlur', ctx.shadowBlur);
ctx.shadowColor = evt.strokeStyle;
ctx.lineTo(evt.x, evt.y);
ctx.stroke();
Expand Down Expand Up @@ -2169,7 +2168,6 @@ function updateCanvasContext() {
ctx.strokeStyle = colourInput.value;
ctx.lineWidth = sizeInput.value;
ctx.shadowBlur = chosenTool === TOOL_BRUSH ? 2 : 0;
console.log('shadowBlur', ctx.shadowBlur);
ctx.shadowColor = colourInput.value;
}

Expand Down

0 comments on commit 76045bb

Please sign in to comment.