Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: OpacityEffect rounding error calculation (#1933)
When using OpacityEffect.fadeOut, the value of opacity at the end of the effect was non zero. I suspect that the rounding error calculation is wrong and this PR tried to simplify that logic. Proof that this PR actually fixes the problem can be seen at the test results of 793415f and 5f3c591. First one just added a test for OpacityEffect.fadeOut and second added the actual fix. Disclaimer: I don't fully understand this part of the code, so be extra vigilant while reviewing this PR.
- Loading branch information
1 parent
205ac56
commit 4cfcfa6
Showing
2 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters