canvas-text-wrapper icon indicating copy to clipboard operation
canvas-text-wrapper copied to clipboard

Deleting canvas data in mobile devices

Open Mustafa-eksi opened this issue 1 year ago • 0 comments

when you try to put text on a image it removes the image and puts only text. I encountered this issue only in mobile devices, works fine on my pc. I was using webpack but I don't think that matters. It cleans canvas at https://github.com/namniak/canvas-text-wrapper/blob/268a8620ab05336d4355c34cc1b6df6b66c9a061/canvas-text-wrapper.js#LL49C1-L49C13 and it doesn't draw it back. I simply commented this section: https://github.com/namniak/canvas-text-wrapper/blob/268a8620ab05336d4355c34cc1b6df6b66c9a061/canvas-text-wrapper.js#L37-L64 and it worked. this is the fork I solved the porblem but I don't know if there is a better solution: https://github.com/Mustafa-eksi/canvas-text-wrapper

Mustafa-eksi avatar May 20 '23 12:05 Mustafa-eksi