mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #798] [MERGED] fix(animation): Fixed cancelling logic #1105
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/798
Author: @thearturca
Created: 4/30/2024
Status: ✅ Merged
Merged: 4/30/2024
Merged by: @LGUG2Z
Base:
feature/animated-move← Head:feature/animated-move📝 Commits (2)
4e0cde7fix(animation): Fixed cancelling logic1495dd8refactor(animation): avoid unwrap📊 Changes
4 files changed (+97 additions, -40 deletions)
View changed files
📝
komorebi/src/animation.rs(+21 -36)➕
komorebi/src/animation_manager.rs(+68 -0)📝
komorebi/src/lib.rs(+5 -0)📝
komorebi/src/window.rs(+3 -4)📄 Description
Added static animation state manager for tracking "in_progress" and "is_cancelled" states. The idea is not to have states in Animation struct but to keep them in HashMap<hwnd, AnimationState> behind reference (Arc<Mutex<>>). So we each animation frame we have access to state and can cancel animation if we have to.
Need review and testings
@raggi @LGUG2Z
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.