Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

[ASTextNode]passthroughNonlinkTouches not working when touching truncationMessage #3259

Closed
yxztj opened this issue Apr 12, 2017 · 1 comment

Comments

@yxztj
Copy link
Contributor

yxztj commented Apr 12, 2017

In ASTextNode.mm line 914, [ASTextNode pointInside: withEvent:] function:

  if (inAdditionalTruncationMessage) {
    return YES;  // hit test success so event won't be passed through, even with passthroughNonlinkTouches == true
  } else if (range.length && !linkCrossesVisibleRange && linkAttributeValue != nil && linkAttributeName != nil) {
    return YES;
  } else {
    return NO;
  }

Is this a by design behavior? Currently it makes no sense to force truncation message to receive touches.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants