Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hopefully really fix SignaturePad#fromDataURL on HiDPI screens this time
- Loading branch information
a8add8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Thanks for this nice library! I'm using it on an iPad Retina and I noticed that fromDataUrl was loading the image 2x smaller than expected. I noticed this commit, and tried undoing the modification, and it now works correctly for me. Do you know what is happening here ? Is this correction somehow not good or am I missing something ?
Kind regards,
Louis
a8add8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh... when exactly does it happen? Do you create and then read back the signature on the same device? I got 2 Macs with retina and non-retina screens, so I'll try to come up with all possible test cases I can think of (i.e. create images on non-retina and retina screens and then read it back on non-retina and retina) and see if it works...
a8add8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@webismymind could you try out this fiddle http://jsfiddle.net/szimek/baL7r8xd/2? Draw anything, cick/tap "replace" button and check if the result is the same as drawn image. There's also similar issue already reported #89...
a8add8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@webismymind Please check #89 (comment) and try if the tests I prepared work for you.
a8add8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a8add8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange :) I prepared 2 tests (linked in #89 (comment)) and they both work fine on 2 Macs with different devicePixelRatio (1 and 2).