secure folder unfolding fix at the end of animation

This commit is contained in:
True Zhuanjia
2026-03-05 19:39:28 +08:00
parent 16b3df5279
commit bc98b43de2
+1
View File
@@ -2898,6 +2898,7 @@ import SVGKit
UIView.animate(withDuration: OnScreenWidgetView.enableFolderAnimation ? (folder.buttonMode == .slideAndHold ? 0.05 : 0.15) : 0, animations: {
widget.center = widget.storedCenter
},completion: { finished in
widget.capturedTouches.removeAllObjects()
widget.isUserInteractionEnabled = !folder.folded
widget.center = folder.folded ? folder.storedCenter : widget.storedCenter
widget.isHidden = folder.folded