Skip to content

Add opt-in disablePanScroll embed scrolling - #42

Open
calumk wants to merge 1 commit into
quickdrawjs:mainfrom
calumk:wheel-opt-out
Open

calumk wants to merge 1 commit into
quickdrawjs:mainfrom
calumk:wheel-opt-out

Conversation

@calumk

@calumk calumk commented Nov 1, 2026 •

Copy link
Copy Markdown

Fixes #41.

One boolean (editor option + <Quickdraw disablePanScroll> prop, live-switchable): plain wheel passes to the page, Ctrl/Meta+wheel zooms the board. Off by default — existing behavior unchanged. Hand-tool drag-pan and all pointer tools unaffected either way. Includes a unit test (pass-through freezes camera + event; pinch still captures and zooms) and type declarations.

@vercel

vercel Bot commented Nov 1, 2026

Copy link
Copy Markdown

@calumk is attempting to deploy a commit to the naman's projects Team on Vercel.

A member of the Team first needs to authorize it.

Embedded boards capture wheel for pan/pinch-zoom with no way out short of
readonly. disablePanScroll opts in to passing plain wheel events through to
the page, while Ctrl/Meta+wheel still zooms the board (the browser would
page-zoom without the capture). Off by default: existing behavior is
byte-identical. Forwarded through <Quickdraw> live-switchably; pointer
tools including hand drag-pan are unaffected either way.
@calumk calumk changed the title Add opt-in ctrlScrollZoom embed scrolling Add opt-in disablePanScroll embed scrolling Nov 1, 2026

This branch has not been deployed

No deployments
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.

Opt-in embed scrolling: plain wheel passes through, pinch still zooms

1 participant