Skip to content

Allow for click detection (mouse picking) of a TextSpan #17477

@ethereumdegen

Description

@ethereumdegen

What problem does this solve or what need does it fill?

I am rendering a Text element with many child TextNodes , some of the children are 'links' so they have a component on them that has the destination when clicked. However, it seems that the Interaction component doesnt work with a TextSpan in 0.15 . ?

What solution would you like?

Some way, with Interaction or otherwise, to be able to detect a click (trigger on an entity on mouse click) on a text span

I have tried to attach a Node and Button component to the text span but that totally breaks the text rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PickingPointing at and selecting objects of all sortsA-TextRendering and layout for charactersC-FeatureA new feature, making something new possibleD-ComplexQuite challenging from either a design or technical perspective. Ask for help!S-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions