Repository navigation
Fix(html5): Zoom not being persisted on presenter change - #22490
Conversation
WalkthroughThis change updates the Sequence Diagram(s)sequenceDiagram
participant WB as Whiteboard Component
participant EF as useEffect Hook
participant ZC as ZoomChanger Function
WB->>EF: Component Mount (with fitToWidth & isPresenter)
EF->>ZC: Initialize zoom adjustment using fitToWidth
Note right of EF: isPresenter is no longer triggering zoom changes
WB->>EF: Update (fitToWidth changes)
EF->>ZC: Recalculate zoom adjustment based on new fitToWidth
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
Fixes an issue where the zoom level was not persisted through presenter changes. The problem occurred because a logic intended for 'fitToWidth' was incorrectly applied during presenter transitions.
Closes Issue(s)
Part of #21873, fitToWidth fix will be a follow up PR, because fit to width currently is a local state on client, not a meeting wide information, so more internal changed are needed.
How to test
More
Screencast.from.07-03-2025.11.45.29.webm