Commit cf1966d
Avoid zooming in when zooming out over certain areas of chart (#574)
* Avoid zooming in when zooming out over certain areas of chart
Zooming out when hovering over y-axis labels or legend would cause `minPercent` to be negative or past 100%, causing the chart to zoom in instead.
* Update src/scale.types.js
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>1 parent 786c34f commit cf1966d
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
0 commit comments