We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce3279 commit a358681Copy full SHA for a358681
YYText/Component/YYTextEffectWindow.m
@@ -399,7 +399,11 @@ - (void)_updateSelectionGrabberDot:(YYSelectionGrabberDot *)dot selection:(YYTex
399
}
400
401
CGPoint center = [dot yy_convertPoint:CGPointMake(CGRectGetWidth(dot.frame) / 2, CGRectGetHeight(dot.frame) / 2) toViewOrWindow:self];
402
- dot.mirror.center = center;
+ if (isnan(center.x) || isnan(center.y) || isinf(center.x) || isinf(center.y)) {
403
+ dot.mirror.hidden = YES;
404
+ } else {
405
+ dot.mirror.center = center;
406
+ }
407
408
409
- (void)showSelectionDot:(YYTextSelectionView *)selection {
0 commit comments