Skip to content

feat(whiteboard): make ctrl-to-zoom wheel behavior configurable - #25739

Merged
ramonlsouza merged 1 commit into
bigbluebutton:v4.0.x-developfrom
antobinary:wheel-zoom-optional-v40
Sep 3, 2026
Merged

ramonlsouza merged 1 commit into
bigbluebutton:v4.0.x-developfrom
antobinary:wheel-zoom-optional-v40

Conversation

@antobinary

Copy link
Copy Markdown
Member

What does this PR do?

Makes the 4.0 mouse-wheel behavior on the whiteboard configurable via a new
public.whiteboard.wheelZoomRequiresCtrl setting.

Motivation

#25527 changed the presenter's mouse wheel from zooming to scrolling. Some
deployments' users have relied on zoom-by-wheel navigation for many years and
find it the fastest way to navigate a slide, and portrait slides (where
scrolling pays off) are rare e.g. in school lectures. This keeps the new
behavior as the default while letting such deployments restore the old one
with a one-line override in /etc/bigbluebutton/bbb-html5.yml, or per meeting
via clientSettingsOverride.

@hiroshisuga asked in https://groups.google.com/g/bigbluebutton-dev/c/4vDKx02hs3E

I am just wondering if we can make this feature optional:
feat(whiteboard): mouse wheel scrolls instead of zooming (use ctrl to zoom)
My users are already used to the zoom-by-wheel behaviour and it has been very comfortable to navigate the slide quickly. This has not been changed for many years in BBB. In addition, in school lectures we rarely use portrait dimension slide.
Thank you for the consideration!

More

The flag is read in handleMouseWheel with a fallback to true, so clients
briefly served a settings payload predating this key during a rolling upgrade
keep the default behavior. Viewer wheel handling and pinch-zoom are untouched.

BBB 4.0 changed the presenter mouse wheel over the presentation from
zooming to vertical scrolling, with Ctrl/Cmd + wheel to zoom (bigbluebutton#25527).
Deployments whose users rely on the long-standing zoom-by-wheel
navigation (unchanged for many years before 4.0) asked for a way to
keep it, especially where portrait slides that benefit from scrolling
are rare.

Add public.whiteboard.wheelZoomRequiresCtrl:
- true (default): wheel scrolls the slide, Ctrl/Cmd + wheel zooms
  (the 4.0 behavior, unchanged)
- false: wheel zooms directly, as in BBB 3.0 and earlier

The fallback to true in hooks.js covers clients briefly served a
settings payload predating this key during rolling upgrades.
@antobinary antobinary added this to the Release 4.0 milestone Sep 2, 2026
@coderabbitai

coderabbitai Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 7dbe5989-f0fa-4441-860c-d20ce73d32b9

📥 Commits

Reviewing files that changed from the base of the PR and between 00fbc20 and 0c0c73f.

📒 Files selected for processing (4)
  • bigbluebutton-html5/imports/ui/Types/meetingClientSettings.ts
  • bigbluebutton-html5/imports/ui/components/whiteboard/hooks.js
  • bigbluebutton-html5/imports/ui/core/initial-values/meetingClientSettings.ts
  • bigbluebutton-html5/private/config/settings.yml

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


Walkthrough

The change adds wheelZoomRequiresCtrl to whiteboard settings. The setting defaults to true in the client and YAML configuration. The wheel handler reads the setting, requires Ctrl/Cmd for zoom when enabled, and zooms directly when disabled. Non-zoom wheel events continue to pan vertically.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 0c0c7

The PR adds an opt-in configuration for presenter mouse-wheel zoom behavior while keeping the current Ctrl/Cmd-to-zoom behavior as the default. The change is localized and introduces no actionable merge-blocking risk beyond normal checks and review.

Sequence Diagram(s)

sequenceDiagram
  participant Settings
  participant MeetingClient
  participant Whiteboard
  Settings->>MeetingClient: provide wheelZoomRequiresCtrl
  MeetingClient->>Whiteboard: expose whiteboard setting
  Whiteboard->>Whiteboard: handle mouse-wheel event
  Whiteboard-->>Whiteboard: zoom directly or require Ctrl/Cmd
Loading

Suggested reviewers: ramonlsouza, prlanzarin

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: configurable Ctrl-to-zoom behavior for whiteboard wheel input.
Description check ✅ Passed The description accurately explains the new setting, its default behavior, its compatibility fallback, and the behavior when disabled. It is directly related to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@antobinary antobinary mentioned this pull request Sep 2, 2026
5 of 23 tasks
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@hiroshisuga

Copy link
Copy Markdown
Contributor

Thanks @antobinary. I will test it later but I believe it works!

@ramonlsouza
ramonlsouza merged commit 4354320 into bigbluebutton:v4.0.x-develop Sep 3, 2026
37 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 participants