Skip to content

Commit d2a1ff1

Browse files
committed
Fixed resuming animations
1 parent c81a9e9 commit d2a1ff1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/Marquee/src/Marquee.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,6 @@ private bool UpdateAnimation(out TimeSpan seekPoint)
282282
{
283283
seekPoint = TimeSpan.Zero;
284284

285-
// Stop any existing storyboard
286-
_marqueeStoryboard?.Stop();
287-
288285
// Check for crucial template parts
289286
if (_marqueeContainer is null ||
290287
_marqueeTransform is null ||
@@ -342,6 +339,7 @@ _segment1 is null ||
342339
_segment2.Visibility = Visibility.Collapsed;
343340

344341
_marqueeStoryboard = null;
342+
_marqueeStoryboard?.Stop();
345343
return false;
346344
}
347345

@@ -361,6 +359,7 @@ _segment1 is null ||
361359
if (distance is 0)
362360
{
363361
_marqueeStoryboard = null;
362+
_marqueeStoryboard?.Stop();
364363
return false;
365364
}
366365

0 commit comments

Comments
 (0)