diff --git a/Source/ASTextNode.mm b/Source/ASTextNode.mm index b1465fcde..e2c458c44 100644 --- a/Source/ASTextNode.mm +++ b/Source/ASTextNode.mm @@ -208,11 +208,13 @@ @implementation ASTextNode { NSString *_highlightedLinkAttributeName; id _highlightedLinkAttributeValue; - ASTextNodeHighlightStyle _highlightStyle; NSRange _highlightRange; ASHighlightOverlayLayer *_activeHighlightLayer; UILongPressGestureRecognizer *_longPressGestureRecognizer; + ASTextNodeHighlightStyle _highlightStyle; + BOOL _longPressCancelsTouches; + BOOL _passthroughNonlinkTouches; } @dynamic placeholderEnabled; @@ -265,6 +267,11 @@ - (void)dealloc CGColorRelease(_shadowColor); } +- (BOOL)usingExperiment +{ + return NO; +} + #pragma mark - Description - (NSString *)_plainStringForDescription diff --git a/Source/ASTextNode2.mm b/Source/ASTextNode2.mm index f8d5e97ae..a8f7f248a 100644 --- a/Source/ASTextNode2.mm +++ b/Source/ASTextNode2.mm @@ -170,12 +170,14 @@ @implementation ASTextNode { NSString *_highlightedLinkAttributeName; id _highlightedLinkAttributeValue; - ASTextNodeHighlightStyle _highlightStyle; NSRange _highlightRange; ASHighlightOverlayLayer *_activeHighlightLayer; UIColor *_placeholderColor; UILongPressGestureRecognizer *_longPressGestureRecognizer; + ASTextNodeHighlightStyle _highlightStyle; + BOOL _longPressCancelsTouches; + BOOL _passthroughNonlinkTouches; } @dynamic placeholderEnabled; diff --git a/Source/ASTextNodeCommon.h b/Source/ASTextNodeCommon.h index ab4e134bf..beee262b7 100644 --- a/Source/ASTextNodeCommon.h +++ b/Source/ASTextNodeCommon.h @@ -22,7 +22,7 @@ /** * Highlight styles. */ -typedef NS_ENUM(NSUInteger, ASTextNodeHighlightStyle) { +typedef NS_ENUM(unsigned char, ASTextNodeHighlightStyle) { /** * Highlight style for text on a light background. */