zoom reset issues
- Dominant language
- Rust
- Stars
- 31.2k
- Forks
- 3.2k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 72
Description
https://forums.ankiweb.net/t/on-anki-2-1-52-zoom-level-is-reset-when-window-state-changes/20045
The resetting during review is probably caused by the call to _initWeb() in nextCard(). There's a decent chance Chromium handles this better than WebKit did, so the reloading may no longer be required and we could try removing it. Another option would be to add a flag to stdHtml() which is passed to setHtml() that avoids changing the current zoom level.
Regarding remembering the zoom level and preserving it across sessions, that could potentially be stored in the profile, though I'm not sure everyone will want that behaviour, and we may want to gather some more feedback from users first.
Contributor guide
Research direction
Trace the review flow around nextCard() and its call to _initWeb(), then inspect how stdHtml() passes content to setHtml(). Compare the WebKit and Chromium behavior described in the linked forum report. Done should mean that changing cards or the window state no longer unexpectedly resets the review zoom; persistence across sessions remains an unresolved behavior choice.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100