Commit 6e93efc
committed
Fix drawer animation logic
The drawer animation logic had a bug where it would not properly
animate the drawer to the correct position.
This commit fixes the issue by adjusting the conditions that
determine whether the drawer can reach the target position with
decay. Specifically, it checks if `actualTargetX > 0f` instead of
`targetDifference > 0f` and `actualTargetX == 0f` instead of
`targetDifference < 0f`.1 parent 17301db commit 6e93efc
1 file changed
Lines changed: 2 additions & 4 deletions
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
167 | | - | |
| 165 | + | |
168 | 166 | | |
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
172 | | - | |
| 170 | + | |
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
| |||
0 commit comments