Closed vararg closed 6 years ago
do you have plans to merge the PR?)
Nice question. Looks like no one cares about this bug.
What about savePreviousImageValues()
invocation? It was removed.
Yes, it was removed from this flow.
This invocation looks like workaround, you say something like "Okay we already have imageRenderedAtLeastOnce = true, but if sizes = 0 let's try to get previous image values". Main question is why sizes can be 0 when imageRenderedAtLeastOnce already triggered.
And I can't give answer on this question. I just want to show case when: 1) imageRenderedAtLeastOnce = true 2) sizes = 0 3) Invoking savePreviousImageValues() doesn't help you. Because it also will give you 0.
I checked this implementation. It works.
Fix for issue https://github.com/avito-tech/krop/issues/6 Rework checking logic, now it correctly work with cases when prevMatchViewSize store 0 values.