Repository navigation
feat(whiteboard): make ctrl-to-zoom wheel behavior configurable - #25739
Conversation
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.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. WalkthroughThe change adds Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to 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
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation 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)
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. Comment |
✅ Automated tests have passed! |
|
Thanks @antobinary. I will test it later but I believe it works! |
What does this PR do?
Makes the 4.0 mouse-wheel behavior on the whiteboard configurable via a new
public.whiteboard.wheelZoomRequiresCtrlsetting.true(default): the wheel scrolls (pans) the slide; hold Ctrl/Cmd whilescrolling to zoom — the current 4.0 behavior from feat(whiteboard): mouse wheel scrolls instead of zooming (use ctrl to zoom) #25527, unchanged.
false: the wheel zooms directly, as in BBB 3.0 and earlier.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 meetingvia
clientSettingsOverride.@hiroshisuga asked in https://groups.google.com/g/bigbluebutton-dev/c/4vDKx02hs3E
More
The flag is read in
handleMouseWheelwith a fallback totrue, so clientsbriefly served a settings payload predating this key during a rolling upgrade
keep the default behavior. Viewer wheel handling and pinch-zoom are untouched.