Revert "feat: add pan, zoom, and auto-fit to whiteboard canvas"#169
Revert "feat: add pan, zoom, and auto-fit to whiteboard canvas"#169
Conversation
This reverts commit a680fcf.
|
Hey @YizukiAme — we're reverting #31 to rework the pan/zoom/auto-fit logic with a different design direction. Here's what we're planning:
If you have thoughts on the design or want to discuss the approach, feel free to chime in here! Would love your input since you built the original implementation. |
|
@cosarah Thanks for the detailed explanation!! The bounded canvas + always-on drag approach totally makes sense. My original logic of requiring zoom before drag was to prevent accidental panning, but you're right — adding proper boundaries solves that much more cleanly! I'd be happy to rework the implementation based on these guidelines. A couple of quick thoughts: Bounded zoom/pan — would you prefer a hard clamp (can't pan beyond edges at all) or a soft resistance (slight elasticity like iOS scroll bounce)? |
|
Of course, if the team already has a plan or someone else wants to take this on, totally fine too — happy to help review or contribute in any way! 😊 |
|
@YizukiAme Thank you so much for your contribution and involvement! After discussing with @wyuc, we felt the whiteboard design and interaction needed some refinement, which is why we're reworking this. Your work on #31 was a great starting point and we really appreciate it. Looking forward to your future contributions! 🙏 |
|
While we're reworking the whiteboard, two more things worth considering: 1. Snapshot trigger logic Right now snapshots are pushed both on clear and on a 2-second debounce after any edit. The debounce path tends to accumulate a lot of intermediate states that users don't really need to restore. Consider only snapshotting before destructive operations (clear / AI clear) since the main use case is "the board got wiped, I want it back." 2. History panel interaction The current slide-out panel feels disconnected from the history button. A popover/dropdown anchored to the button would feel more natural and match the "click outside to dismiss" behavior users already expect. |
Reverts #31