image/loading: Adjust frame timing by accrued delay

This should fix animations systematically slowing down.
This commit is contained in:
Sophie Herold 2026-06-23 22:45:16 +02:00
parent 5505f5d876
commit eee2b415d2
4 changed files with 26 additions and 14 deletions

View file

@ -253,8 +253,8 @@ mod imp {
/// Ticks callback for animated image formats
pub(super) tick_callback: RefCell<Option<gtk::TickCallbackId>>,
/// Frame block time for currently shown frame
pub(super) last_animated_frame: Cell<i64>,
/// Adjusted frame clock time for when the current frame was shown
pub(super) last_animated_frame: Cell<Option<i64>>,
/// Gesture, zoom or rotate, used for the duration of the gesture
pub(super) locked_gestured: Cell<Option<Gesture>>,