Posts by Caio Leony • 11 points
1 post
-
1
votes1
answer30
viewsA: Draw on canvas no matter the position of the canvas
Actually it is drawing, but the X and Y coordinates are not "correct". You need to compensate the event.clientX and event.clientY, subtracting by the positioning of the canvas through the function…