Commit c032b5d
Fix zoom control: Initialize SVG viewBox on creation
Set viewBox attribute when SVG is created to match initial dimensions (100% zoom).
This prevents unexpected visual changes on first zoom control interaction.
Fixes issue where graph would jump/resize on first click of zoom slider even at 100%.
Co-authored-by: sei-vsarvepalli <[email protected]>1 parent a95fa22 commit c032b5d
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
0 commit comments