fix crash caused by long pressing blank area in favorite mode

This commit is contained in:
TrueZhuanjia
2025-07-03 13:11:50 +08:00
parent 7426e3e78c
commit 29700e6f18
@@ -861,11 +861,12 @@ BOOL isCustomResolution(CGSize res) {
}
if(currentSettingsMenuMode == FavoriteSettings){
if(!capturedStack) return;
switch (gesture.state) {
case UIGestureRecognizerStateBegan:
// 创建快照视图
[self findCapturedStackByTouchLocation:locationInParentStack];
if(capturedStack == nil) return;
snapshot = [capturedStack snapshotViewAfterScreenUpdates:YES];
//snapshot.center = capturedStack.center;