You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(bounds): respect disablePadding and explicit position props in bounds calculation
Bounds calculation now honours the disablePadding flag (locks content
when it fits the wrapper) and applies minPositionX/maxPositionX/
minPositionY/maxPositionY prop overrides. Pinch and wheel handlers
enforce these explicit bounds via hasExplicitPositionBounds. Initial
state creation clamps scale to minScale/maxScale and respects position
bounds.
Also includes:
- src/ added to published package files for source maps
- ResizeObserver mock in jest.setup for centerOnInit flows
- Test assertions updated for synchronous setTransform calls and
correct pan directions
- Storybook enhanced with bounds overlay, cinema venue example, and
mixed-content demos
Made-with: Cursor
0 commit comments