Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix fast animation by checking AccessibilityFeatures.disableAnimations

AmanRajSinghMourya0e4162730684
diff --git a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
index 29225c22e4..c51b38bdfb 100644
--- a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
@@ -716,6 +716,7 @@ class _MemoriesZoomWidgetState extends State<MemoriesZoomWidget>
duration: const Duration(
seconds: 5,
),
+ animationBehavior: AnimationBehavior.preserve,
);
final startScale = widget.zoomIn ? 1.05 : 1.15;
diff --git a/mobile/apps/photos/lib/ui/home/memories/memory_progress_indicator.dart b/mobile/apps/photos/lib/ui/home/memories/memory_progress_indicator.dart
index 0028215197..3cfc42253c 100644
--- a/mobile/apps/photos/lib/ui/home/memories/memory_progress_indicator.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/memory_progress_indicator.dart
@@ -40,6 +40,7 @@ class _MemoryProgressIndicatorState extends State<MemoryProgressIndicator>
_animationController = AnimationController(
vsync: this,
duration: widget.duration,
+ animationBehavior: AnimationBehavior.preserve,
);
_animation =