waterWang opened a new pull request, #21718:
URL: https://github.com/apache/echarts/pull/21718

   ### Fixes #21691
   
   **Problem**: After using the toolbox dataZoom zoom, clicking "Restore" and 
then attempting to zoom again, the chart area shows blank.
   
   **Root cause**: The `restore` action calls `resetOption('recreate')` which 
re-creates all chart models, but `_isZoomActive` in the dataZoom feature was 
never reset. After restore, `_isZoomActive` remained `true`, so the next zoom 
button click toggled it to `false` (disabling the brush). Additionally, the 
brush controller's internal state was stale after the model recreation, causing 
incorrect zoom range computation.
   
   **Fix**: In `updateZoomBtnStatus`, handle the `restore` payload by resetting 
`zoomActive` to `false`. This ensures that after restore:
   1. The zoom button is properly deactivated
   2. The brush controller is disabled
   3. The next zoom button click correctly activates the zoom mode
   
   This is a regression in v6.1.0. The `takeGlobalCursor` action was already 
handled, but the `restore` action was not.


-- 
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