mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Implement zoom control functionality for fixed-layout e-books
This commit adds comprehensive zoom control capabilities for fixed-layout e-book content, allowing users to zoom in, out, and reset zoom levels for better readability and content inspection. Key features added: - Zoom control UI with +/- buttons and percentage display - Keyboard shortcuts for zoom operations (Ctrl/Cmd +, -, 0) - Mouse wheel zoom with Ctrl/Cmd modifier key - Drag-to-pan functionality when zoomed in - Smooth zoom transitions and state management - Zoom constraints (min/max limits) to prevent over-zooming Changes include: - FixedLayout: Enhanced with zoom state management, drag handlers, and keyboard/mouse event listeners for intuitive zoom control - Reader UI: Added zoom control toolbar with visual feedback - FixedLayout renderer integration with reader zoom controls The zoom controls provide a seamless experience for users who need to examine fixed-layout content more closely or adjust content size for their preferred reading experience.
This commit is contained in:
+761
-283
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user