feat(viewer): Add smooth zoom and scroll animations to viewer
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-12-11 - 2.1.0 - feat(viewer)
|
||||
Add smooth zoom and scroll animations to viewer
|
||||
|
||||
- Introduce smooth zoom animation: new private animateZoomTo(targetZoom, duration) method and zoomAnimationId to track/cancel running animations
|
||||
- Animate transitions for numeric zoom presets and zoom step changes (handleZoomStep now uses animateZoomTo)
|
||||
- Cancel ongoing zoom animation when user manipulates the zoom slider
|
||||
- Make fit-to-width and fit-to-page calculations optionally animate (calculateFitWidth/ calculateFitPage accept animate flag)
|
||||
- Add animated scrolling helper animateScrollTo for smooth page scrolling when requested (used when smooth=true)
|
||||
|
||||
## 2025-12-11 - 2.0.6 - fix(DeDocumentViewer)
|
||||
Account for toolbar and padding when calculating Fit Page zoom in viewer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user