Version
5.4.2
Link to Minimal Reproduction
https://codesandbox.io/s/clever-hamilton-n3jt3p?file=/src/Chart.tsx
Steps to Reproduce
https://codesandbox.io/s/clever-hamilton-n3jt3p?file=/src/Chart.tsx
When mapping charts, when you click the add button, the animation often starts zooming in from zoom:1 instead of starting from the current chart state.
If the universalTransition property is commented out, the zoom animation will behave as expected, but the transition animations between charts will disappear.
Current Behavior
When mapping charts, when you click the add button, the animation often starts zooming in from zoom:1 instead of starting from the current chart state.
If the universalTransition property is commented out, the zoom animation will behave as expected, but the transition animations between charts will disappear.
Expected Behavior
When the universalTransition property is set, the zoom animation for mapping charts will behave as expected.
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
1条答案
按热度按时间zlwx9yxi1#
Yes, looks like a bug related to combination of animation and universalTransition .
Workaround - replace following three functions in your code: