vinothpandian / react-sketch-canvas

Freehand vector drawing component for React using SVG as canvas 🖌️

Home Page:https://vinoth.info/react-sketch-canvas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resize the canvas content based on the device screen / container width

Angelo-Sterlo opened this issue · comments

If I draw something on the canvas from a desktop device, when I upload the path on a mobile react-sketch-canvas, it cuts out a part of the drawing, showing only the top left corner of the content.

Canvas drawing from desktop:
image

Canvas Drawing from Mobile:
image

I'm currently working with Ionic-React/Typescript.

Is there a way to keep the content visible when changing the canvas width and height?

Thank you in advance!