feat: Data Zoom scrolls using the mouse (mark II) (#28629)

This commit is contained in:
Hugh A. Miles II 2024-05-22 13:17:49 -04:00 committed by GitHub
parent 4fa7619b1f
commit ac53f7fea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -633,6 +633,18 @@ export default function transformProps(
bottom: TIMESERIES_CONSTANTS.zoomBottom,
yAxisIndex: isHorizontal ? 0 : undefined,
},
{
type: 'inside',
yAxisIndex: 0,
zoomOnMouseWheel: false,
moveOnMouseWheel: true,
},
{
type: 'inside',
xAxisIndex: 0,
zoomOnMouseWheel: false,
moveOnMouseWheel: true,
},
]
: [],
};