federico-moretti / canvas-free-drawing

A JavaScript library that allows you to draw in a canvas HTML element, straightforward to use and extremely lightweight.
https://www.federicomoretti.dev/projects/canvas-free-drawing
MIT License
65 stars 11 forks source link

Issue on Touch Screen #14

Closed tettusud closed 3 years ago

tettusud commented 3 years ago

thank you for wonderful work on such a light weight and amazing plugin, I am currently facing issue on touch screen, there is a gap between the pointer and actual point where it is drawing. I am able to reproduce it by cloning your repo and running your example ( a simple http-server locally). Where as the one on this website works fine https://www.federicomoretti.dev/canvas-free-drawing. Not sure what is that am missing.

Once again I appreciate your time

tettusud commented 3 years ago

Looks likes its appearing only on Safari browser, unable to reproduce it on chrome though. update Issue was canvas getting resized after load, and once I have fixed canvas size it works smooth. Fantastic job thanks for this plugin

federico-moretti commented 3 years ago

Happy to know everything works fine and thank you for using/enjoying my library!