Skip to content

Commit 84e270a

Browse files
authored
Merge pull request #700 from zinvob/develop
Fixed NaN issues with Android 9 and 10 when using multiple popups
2 parents 4311730 + 80237da commit 84e270a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Rg.Plugins.Popup/Animations/ScaleAnimation.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public async override Task Disappearing(View content, PopupPage page)
131131
taskList.Add(content.TranslateTo(leftOffset, _defaultTranslationY, DurationOut, EasingOut));
132132
}
133133
}
134-
135134
await Task.WhenAll(taskList);
136135
}
137136

@@ -141,7 +140,7 @@ private Task Scale(View content, Easing easing, double start, double end, bool i
141140

142141
content.Animate("popIn", d =>
143142
{
144-
content.Scale = d;
143+
content.Scale = double.IsNaN(d) ? 1 : d;
145144
}, start, end,
146145
easing: easing,
147146
length: isAppearing ? DurationIn : DurationOut,

0 commit comments

Comments
 (0)