Skip to content

Fix(html5): presentation moving to old position when enable infinite WB - #24556

Merged
ramonlsouza merged 1 commit into
bigbluebutton:v3.0.x-releasefrom
Tainan404:i-24535
Jan 28, 2026
Merged

ramonlsouza merged 1 commit into
bigbluebutton:v3.0.x-releasefrom
Tainan404:i-24535

Conversation

@Tainan404

Copy link
Copy Markdown
Member

What does this PR do?

This issue was caused by an inconsistency between how the feature was disabled when turning off the button and when slide changes occurred. To fix this, a shared utility function was introduced to handle the disable logic, ensuring consistent behavior across all places where the feature is triggered.

Closes Issue(s)

Closes #24535

How to test

  1. Join as Presenter
  2. Join as Viewer
  3. Presenter draws "A" on the slide.
  4. Presenter enables Infinite wb, pans away to outside of the slide and draws "B"
  5. Move to next slide
  6. turn back
  7. enable infinite wb
  8. Everything should be fine

More

Before:

Before.webm

After:

Screencast.from.27-01-2026.11.03.31.webm

@coderabbitai

coderabbitai Bot commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

A helper method disableInfiniteWhiteboard() was introduced to the PresentationToolbar component to centralize the logic for disabling infinite whiteboard mode. This method resets the camera position, slide, zoom level to 100%, and disables infinite whiteboard. The method is now invoked by handleSkipToSlideChange(), nextSlideHandler(), previousSlideHandler(), and the Infinite Whiteboard button click handler instead of directly manipulating the state in each location. This consolidates previously scattered reset logic into a single point of control.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main fix addressing the infinite whiteboard repositioning issue when re-enabled.
Description check ✅ Passed The description explains the root cause (inconsistency between disable paths), the solution (shared utility function), and provides testing steps and visual evidence.
Linked Issues check ✅ Passed The PR introduces a disableInfiniteWhiteboard() helper method that centralizes reset logic, directly addressing issue #24535's requirement for consistent behavior when re-enabling the feature.
Out of Scope Changes check ✅ Passed All changes in PresentationToolbar are scoped to fixing the infinite whiteboard disable inconsistency; no unrelated modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

sonarqubecloud Bot commented Jan 27, 2026 •

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary antobinary added this to the Release 3.0 milestone Jan 27, 2026
@ramonlsouza
ramonlsouza merged commit 045a0af into bigbluebutton:v3.0.x-release Jan 28, 2026
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[3.0] Infinite wb: re-enabling leads to different result for viewer vs presenter

3 participants