Revert real time playback being enabled by default (#3150)

This commit is contained in:
Dennis Kobert
2025-09-08 02:15:59 -07:00
committed by GitHub
parent 84470b6b6d
commit a1e05754e5
@@ -99,13 +99,15 @@ impl MessageHandler<AnimationMessage, ()> for AnimationMessageHandler {
} }
} }
AnimationMessage::UpdateTime => { AnimationMessage::UpdateTime => {
if self.is_playing() {
responses.add(PortfolioMessage::SubmitActiveGraphRender); responses.add(PortfolioMessage::SubmitActiveGraphRender);
if self.is_playing() && self.live_preview_recently_zero { if self.live_preview_recently_zero {
// Update the restart and pause/play buttons // Update the restart and pause/play buttons
responses.add(PortfolioMessage::UpdateDocumentWidgets); responses.add(PortfolioMessage::UpdateDocumentWidgets);
self.live_preview_recently_zero = false; self.live_preview_recently_zero = false;
} }
} }
}
AnimationMessage::RestartAnimation => { AnimationMessage::RestartAnimation => {
self.frame_index = 0.; self.frame_index = 0.;
self.animation_state = match self.animation_state { self.animation_state = match self.animation_state {