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

hitArea can also be null (fixing #8212) #8213

Merged
merged 2 commits into from Mar 20, 2022
Merged

Conversation

mathiasbockwoldt
Copy link
Contributor

This is needed to be able to remove hitAreas again. Also, the default for hitArea is null, so this is now properly reflected in the type.

Description of change

Added possible type null to hitArea of InteractiveTarget (that is extended by DisplayObject).

Pre-Merge Checklist
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

This is needed to be able to remove hitAreas again. Also, the default for hitArea is null, so this is now properly reflected in the type.
@bigtimebuddy
Copy link
Member

Nice! Could you also fix the events package hitArea too which does the same thing:

packages/events/src/FederatedEventTarget.ts

Events is our future replacement for interaction manager.

@bigtimebuddy bigtimebuddy added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label Mar 4, 2022
@bigtimebuddy bigtimebuddy merged commit 352704d into pixijs:dev Mar 20, 2022
@bigtimebuddy
Copy link
Member

Good one, thanks @mathiasbockwoldt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants