kevinz-isentia opened a new pull request, #20124:
URL: https://github.com/apache/echarts/pull/20124

   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   This PR fixes some zoom issues in DataZoom
   
   
   ### Fixed issues
   
   - Fixed sideway scrolling when reaching max or min span in DataZoom
   - Fixed zooming disproportion in DataZoom if there is more than one axis 
(keep the same ratio for x and y axis)
   
   
   ## Details
   
   ### Before: What was the problem?
   1.  When using mouse wheel to zoom in/out, it will start sideway scrolling 
when it reaches the max/min span.
   ![zoom in out 
before](https://github.com/pulsarplatform/echarts/assets/126215214/595860a4-3e59-4e7b-bceb-8b1832eb13c9)
   
   2. Sometimes on zoom out, the zoom ration will become inconsistent and 
causing a disproportional view.
   <img width="794" alt="before" 
src="https://github.com/pulsarplatform/echarts/assets/126215214/ea1e85d1-4cbf-4921-b2d4-67dbfdc3647c";>
   
   ### After: How does it behave after the fixing?
   
   1. Fixed effect: it will stop at the max/min span
   ![zoom in out 
after](https://github.com/pulsarplatform/echarts/assets/126215214/fee8ab4b-2852-46fc-8d86-14296c7dfead)
   
   2. Fixed effect: Two axes keep the same ratio
   <img width="794" alt="after" 
src="https://github.com/pulsarplatform/echarts/assets/126215214/8d8f3969-c587-4efa-9729-57e3867daace";>
   
   
   
   ## Document Info
   
   One of the following should be checked.
   
   - [x] This PR doesn't relate to document changes
   - [ ] The document should be updated later
   - [ ] The document changes have been made in apache/echarts-doc#xxx
   
   
   
   ## Misc
   
   ### ZRender Changes
   
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   N.A.
   
   
   
   ## Others
   
   ### Merging options
   
   - [x] Please squash the commits into a single one when merging.
   
   


-- 
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-unsubscr...@echarts.apache.org

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


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

Reply via email to