mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
userInteractionEnabled defaults to NO
Previously self.userInteractionEnabled defaulted to YES, and this caused plenty of bugs for me when text nodes would silently steal touches. It should default to NO, and callers who want tappability on their text nodes should manually set .userInteractionEnabled to YES.
This commit is contained in:
parent
07a538a2dc
commit
a6a2907ad9
@ -117,8 +117,8 @@ ASDISPLAYNODE_INLINE CGFloat ceilPixelValue(CGFloat f)
|
|||||||
_shadowOpacity = [super shadowOpacity];
|
_shadowOpacity = [super shadowOpacity];
|
||||||
_shadowRadius = [super shadowRadius];
|
_shadowRadius = [super shadowRadius];
|
||||||
|
|
||||||
// Enable user interaction for text node, as ASControlNode disables it by default.
|
// Disable user interaction for text node by default.
|
||||||
self.userInteractionEnabled = YES;
|
self.userInteractionEnabled = NO;
|
||||||
self.needsDisplayOnBoundsChange = YES;
|
self.needsDisplayOnBoundsChange = YES;
|
||||||
|
|
||||||
_truncationMode = NSLineBreakByWordWrapping;
|
_truncationMode = NSLineBreakByWordWrapping;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user