unitrongroup-ir commented on issue #10079:
URL: https://github.com/apache/echarts/issues/10079#issuecomment-6024705710

   Still happening in 6.1.0, even with both `zoomOnMouseWheel: false` and 
`moveOnMouseWheel: false` the page doesn't scroll while the mouse is over the 
grid.
   
   From what I can see, `mergeControllerParams` in 
`component/dataZoom/roams.ts` always passes `zoomOnMouseWheel: true` and 
`moveOnMouseWheel: true` to the shared RoamController, and 
`_checkTriggerMoveZoom` calls `eventTool.stop()` on the wheel event before the 
dataZoom's own setting is checked in the listener. So the wheel gets eaten 
although the dataZoom then ignores it.
   
   What works for us in the meantime:
   - `disabled: true` on the inside dataZoom when we don't need it. Dispatching 
`dataZoom` actions (our own zoom buttons) still works with it disabled.
   - `zoomLock: true` when we only need dragging. The controller is then 
enabled as `'move'` and doesn't register the wheel listener at all, so the page 
scrolls normally.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to