You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "helgasoft (via GitHub)" <gi...@apache.org> on 2023/02/17 20:32:51 UTC

[GitHub] [echarts] helgasoft commented on issue #18281: [Bug] datazoom inside 横向展示 鼠标滚动方向与图表滚动方向不一致

helgasoft commented on issue #18281:
URL: https://github.com/apache/echarts/issues/18281#issuecomment-1435237179

   I do not think it is a bug, mostly a design **preference** of the developers.
   The scrolling direction looks fine to me.  To **reverse** it, one might have to change the mousewheel event parameter _zrDelta_. Something like:
   ```
   var zr = myChart.getZr();
   zr.on('mousewheel', function (params) {
     params.event.zrDelta = - params.wheelDelta;
     console.log(params.event.zrDelta +' '+ params.wheelDelta); 
     // successfully updated but does not change the direction...
   });
   ```


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org