Description:
When presenting a board to a team, the presenter should be able to force all other users' viewports to lock onto theirs.
How to Implement:
- Yjs Awareness: Update the presenter's awareness state to include a
presenting: true flag and their current viewport coordinates (canvas.vptCoords).
- Client Sync: Other clients listen to awareness changes. If another user is presenting, intercept their viewport changes.
- Panning: Use
canvas.absolutePan() and canvas.setZoom() on the viewers' screens to match the presenter's coordinates. Block user-initiated panning while following.
Description:
When presenting a board to a team, the presenter should be able to force all other users' viewports to lock onto theirs.
How to Implement:
presenting: trueflag and their current viewport coordinates (canvas.vptCoords).canvas.absolutePan()andcanvas.setZoom()on the viewers' screens to match the presenter's coordinates. Block user-initiated panning while following.