This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
Cannot read properties of undefined (reading 'getPointerCoordinates') when setting a small canvasWidth #134
Labels
bug
Something isn't working
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.I'm calculating the size of the canvas based on the size of the image and the size of the screen to make sure the image always fits the screen. When I tried editing images that were much taller than wider I got an error like this:
The easiest way to reproduce the problem for me was to set
canvasWidth={100}
andcanvasHeight={400}
and then I consistently reproduced the error.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: