Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from pixijs/fix/interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie authored May 21, 2024
2 parents 637e413 + 2782913 commit b941dc1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Spine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,18 @@ export class Spine extends Container implements View
bounds.addBounds(this.bounds);
}

// passed local space..
public containsPoint(_point: PointData)
public containsPoint(point: PointData)
{
const bounds = this.bounds;

if (point.x >= bounds.minX && point.x <= bounds.maxX)
{
if (point.y >= bounds.minY && point.y <= bounds.maxY)
{
return true;
}
}

return false;
}

Expand Down

0 comments on commit b941dc1

Please sign in to comment.