I added a "scale" to the test app, so that you can test with a lot of downscaling of the image. The bug can reproduced by running the example and revert the fixed code in /imageeditor/ImageEditorModuleImpl.kt, then set the scale to less than 0.5. With the fixed code in /imageeditor/ImageEditorModuleImpl.kt, the issue is gone
Summary
Fixes #150
Test plan
I added a "scale" to the test app, so that you can test with a lot of downscaling of the image. The bug can reproduced by running the example and revert the fixed code in
/imageeditor/ImageEditorModuleImpl.kt
, then set the scale to less than 0.5. With the fixed code in/imageeditor/ImageEditorModuleImpl.kt
, the issue is gone