agilgur5 / react-signature-canvas

A React wrapper component around signature_pad (in < 150 LoC). Unopinionated and heavily updated fork of react-signature-pad

Home Page:https://agilgur5.github.io/react-signature-canvas/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resize causes de-sync when clearOnResize=false

ishika1727 opened this issue · comments

How to handle high DPI screens using this package. While using this package in my code, when I resize it to mobile view is goes like this gif. Please suggest appropriate way to rectify this. @agilgur5

ey

If you're experience a de-sync after a resize, that's because you've set clearOnResize={false}, meaning you've opted out of the internal resize handling. The de-sync is unrelated to high DPI or not, though that may increase the scale of de-sync.

This is a duplicate of #43