[GH-ISSUE #4808] [Issue]: Pause Home Professor Mari animations while the browser tab is inactive #2657

Closed
opened 2026-10-21 05:52:18 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4808

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The animated Professor Mari in the Home Your Guide widget and the floating Professor Mari navigation helper continue animating when the Marinara Engine browser tab is no longer active.

Background animation wastes resources and advances animation state while the user cannot see it.

Current behavior

Both Professor Mari animation systems continue playing while the Engine tab is hidden or inactive.

Expected behavior

The animations pause as soon as the Engine tab becomes hidden/inactive and resume seamlessly from the same visible state when the user returns.

Acceptance criteria

  • Pause the Professor Mari animation in the Home Your Guide widget whenever the Engine tab is hidden/inactive.
  • Pause the floating navigation Professor Mari animation under the same condition.
  • Use browser visibility/focus state appropriate to the app shell; background tabs must not keep frame timers or animation loops running.
  • Resume from the preserved animation state without restarting, flashing, disappearing, or briefly showing an incorrect frame.
  • Preserve the navigator's current dialogue, search, minimized, drag, and placement state across pause/resume.
  • Do not create duplicate intervals, animation frames, visibility listeners, or other work after repeated tab switches.
  • Clean up listeners and animation work when either component unmounts.
  • Keep existing reduced-motion behavior intact.
  • Add regression coverage for repeated hide/show cycles and verify only one animation loop remains active.

Context

Follow-up to the rebuilt Home experience from #4763 / #4780.

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4808 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The animated Professor Mari in the Home **Your Guide** widget and the floating Professor Mari navigation helper continue animating when the Marinara Engine browser tab is no longer active. Background animation wastes resources and advances animation state while the user cannot see it. ## Current behavior Both Professor Mari animation systems continue playing while the Engine tab is hidden or inactive. ## Expected behavior The animations pause as soon as the Engine tab becomes hidden/inactive and resume seamlessly from the same visible state when the user returns. ## Acceptance criteria - [ ] Pause the Professor Mari animation in the Home Your Guide widget whenever the Engine tab is hidden/inactive. - [ ] Pause the floating navigation Professor Mari animation under the same condition. - [ ] Use browser visibility/focus state appropriate to the app shell; background tabs must not keep frame timers or animation loops running. - [ ] Resume from the preserved animation state without restarting, flashing, disappearing, or briefly showing an incorrect frame. - [ ] Preserve the navigator's current dialogue, search, minimized, drag, and placement state across pause/resume. - [ ] Do not create duplicate intervals, animation frames, visibility listeners, or other work after repeated tab switches. - [ ] Clean up listeners and animation work when either component unmounts. - [ ] Keep existing reduced-motion behavior intact. - [ ] Add regression coverage for repeated hide/show cycles and verify only one animation loop remains active. ## Context Follow-up to the rebuilt Home experience from #4763 / #4780. - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2657
No description provided.