修复bug

This commit is contained in:
2026-03-24 17:24:16 +08:00
parent 78ebe0c2a6
commit 5fd826ab54
5 changed files with 68 additions and 27 deletions

View File

@@ -15,6 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
using CMLeonOS.Gui;
using System;
namespace CMLeonOS.UILib.Animations
{
@@ -23,6 +24,7 @@ namespace CMLeonOS.UILib.Animations
/// </summary>
internal abstract class Animation
{
internal Action Completed { get; set; }
/// <summary>
/// The easing type of the animation.
/// </summary>
@@ -80,6 +82,7 @@ namespace CMLeonOS.UILib.Animations
if (Finished)
{
Stop();
Completed?.Invoke();
}
}, (ulong)((1000d /* ms */ / 60d) * 1e+6d /* ms -> ns */ ), true));
}