Skip to content

Commit

Permalink
[skip render] fix brush offset
Browse files Browse the repository at this point in the history
  • Loading branch information
argage committed Apr 13, 2024
1 parent 69ebaf4 commit 35ed64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/templates/editor/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h3 class="mb-5 text-lg font-normal text-gray-500">
// if selected tool is eraser then set strokeStyle to white
// to paint white color on to the existing canvas content else set the stroke color to selected color
//ctx.strokeStyle = selectedTool === "eraser" ? "#fff" : selectedColor;
ctx.lineTo(e.offsetX, e.offsetY); // creating line according to the mouse pointer
ctx.lineTo(e.offsetX + 6, e.offsetY +26); // creating line according to the mouse pointer
ctx.stroke(); // drawing/filling line with color
}
}
Expand Down

0 comments on commit 35ed64d

Please sign in to comment.