agilgur5 / react-signature-canvas

A React wrapper component around signature_pad (in < 150 LoC). Unopinionated and heavily updated fork of react-signature-pad
https://agilgur5.github.io/react-signature-canvas/
Other
546 stars 119 forks source link

Resize causes de-sync when clearOnResize=false #57

Closed ishika1727 closed 4 years ago

ishika1727 commented 4 years ago

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

agilgur5 commented 4 years ago

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