If you select an area and press the ctrl + NumPad - key combination to reduce the image in the area, then when its size reaches 0 an error will occur.
Error text:
InvalidStateError
Error: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
at OnCanvasSelection.scale (https://jspaint.app/src/OnCanvasSelection.js:277:25)
at https://jspaint.app/src/app.js:1009:14
at dispatch (https://jspaint.app/lib/jquery-3.4.1.min.js:2:42571)
at v.handle (https://jspaint.app/lib/jquery-3.4.1.min.js:2:40572)
If you select an area and press the
ctrl + NumPad -
key combination to reduce the image in the area, then when its size reaches 0 an error will occur.Error text: