Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if parent node is LocationNode #299

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

houcem-soued
Copy link

@houcem-soued houcem-soued commented Sep 19, 2022

Background

When user clicks on a node, the function locationNodeTouched(node:) is not triggered, since a sub-node is registered as the firstHitTest node and the casting of that node to a LocationNode is failing.

Breaking Changes

The idea is to check if one of the parents of the selected node is a LocationNode and in that case we trigger locationNodeTouched(node:)

PR Checklist

  • CI runs clean?
  • Appropriate label has been added to this PR (i.e., Bug, Enhancement, etc.).
  • Documentation has been added to all open, and public scoped methods and properties.
  • Changelog has been updated
  • Tests have have been added to all new features. (not a requirement, but helpful)
  • Image/GIFs have been added for all UI related changed.

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

Successfully merging this pull request may close these issues.

None yet

1 participant