aloktomarr commented on issue #21660: URL: https://github.com/apache/echarts/issues/21660#issuecomment-5003092404
I can reproduce this on master. Root cause is in src/component/dataZoom/history.ts pop() doesn't stop when only the origin snapshot remains it returns the origin as a restorable snapshot, so the toolbox "back"/zoom-reset dispatches one extra redundant dataZoom action(reset fires 3× after 2 zooms instead of 2×) Proposed fix pop() returns an empty snapshot when only the origin remains (its took caller, the toolbox back handler, already guards on batch.length) I've written a unit test covering it and would be happy to open a PR. -- 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]
