Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
1、Set dataZoom like this:
{
type: 'slider',
show: true,
xAxisIndex: [0],
start: 1,
end: 35
},
{
type: 'slider',
show: true,
yAxisIndex: [0],
left: '93%',
start: 29,
end: 36
},
{
type: 'inside',
xAxisIndex: [0],
start: 1,
end: 35
},
{
type: 'inside',
yAxisIndex: [0],
start: 29,
end: 36
}
Current Behavior
When I use MAC touchpad to scale and move it, I just can't move it all direction. It just treat the gesture as scaling instead moving.
Expected Behavior
I want to move the chart through the gesture all direction(up、down、left and right). And when I separate my fingers, I want to scale it. Just like Chrome DevTools's timeline in performance panel.
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
2条答案
按热度按时间yyhrrdl81#
And I tried the option
zoomOnMouseWheel: 'ctrl'
, when I use touchpad. It works when scale but doesn't work when move.jjjwad0x2#
And I find relative code in file
src/component/helper/RoamController.ts
.Can we set a callback when mouse wheel ? So then I can use a custom function to handle the
moving
andscaling
.