Commit 1c1ecf9
fix(docs): allow zooming out from initial auto-fit scale in mermaid modal (#138)
* fix(docs): allow zooming out from initial auto-fit scale in mermaid modal
Changed panzoom contain from 'outside' to false so users can freely
zoom out beyond the auto-fit size. Also reduced minScale to 0.05 to
allow more zoom-out range.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(docs): add wheel scroll zoom to mermaid modal
Attach wheel event listener on modal body that forwards to panzoom's
zoomWithWheel, so users can zoom in/out by scrolling the mouse wheel.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent f4570b1 commit 1c1ecf9
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
51 | 67 | | |
52 | 68 | | |
53 | 69 | | |
| |||
105 | 121 | | |
106 | 122 | | |
107 | 123 | | |
| 124 | + | |
108 | 125 | | |
109 | 126 | | |
110 | 127 | | |
| |||
0 commit comments