From d75f5f92313641a77e533f8254ab4e14aced86dc Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Thu, 19 Feb 2026 10:41:07 +0100 Subject: [PATCH] don't play animation when startTime is set to null --- src/browser/webapi/animation/Animation.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/browser/webapi/animation/Animation.zig b/src/browser/webapi/animation/Animation.zig index 7c2e8839..4daaa8d5 100644 --- a/src/browser/webapi/animation/Animation.zig +++ b/src/browser/webapi/animation/Animation.zig @@ -151,6 +151,12 @@ pub fn getStartTime(self: *const Animation) ?f64 { pub fn setStartTime(self: *Animation, value: ?f64, page: *Page) !void { self._startTime = value; + + // if the startTime is null, don't play the animation. + if (value == null) { + return; + } + return self.play(page); }