修复Animation无法通过代码开启的问题

This commit is contained in:
monitor1394
2024-11-16 17:18:06 +08:00
parent 7fb0765c6c
commit 0a923400b2
2 changed files with 6 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ slug: /changelog
## master
* (2024.11.16) 修复`Animation`无法通过代码开启的问题
* (2024.11.13) 修复`DataZoom`的start和end在代码动态修改时图表不刷新的问题
* (2024.11.05) 修复`Title`设置隐藏后运行还显示的问题
* (2024.11.01) 完善`website`中英文文档

View File

@@ -2007,8 +2007,11 @@ namespace XCharts.Runtime
/// </summary>
public void AnimationEnable(bool flag)
{
if (animation.enable) animation.enable = flag;
SetVerticesDirty();
if (!animation.enable)
{
animation.enable = flag;
SetVerticesDirty();
}
}
/// <summary>