Skip to content

Commit

Permalink
Fix text node not allowing actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
BirjuVachhani committed Mar 7, 2024
1 parent 68735ae commit abe274d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
4 changes: 4 additions & 0 deletions lib/src/api/nodes/text_node.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ class TextNode extends SceneNode with BlendMixin, TextMixin, FontMixin {
);
}

@override
List<TriggerType> get triggerTypes =>
[TriggerType.click, TriggerType.longPress];

@override
late final List<ValueModel> propertyVariables = [
...super.propertyVariables,
Expand Down
43 changes: 22 additions & 21 deletions lib/src/api/nodes/text_node.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit abe274d

Please sign in to comment.