mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
don't play animation when startTime is set to null
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user