HitArea is not updated correctly when changing an Arc’s size via Tween
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 40.3k
- Forks
- 7.2k
- PR merge metrics
- No merged PRs in 30d
Description
Version
- Phaser Version:
v3.90.0
- Operating system:
Linux
- Browser:
Google Chrome 142.0.7444.175
Description
When changing the radius of an Arc via a tween, its hitArea remains at the size it had when it was first created.
As a result, the clickable area no longer matches what is visually displayed.
While investigating, I also noticed that the hitArea for Arc appears to be implemented as a Rectangle. Since there seems to be a dedicated hitArea class for arcs, this may also be unintended behavior.
Example Test Code
Below is a minimal reproduction demo:
https://codepen.io/laineus/pen/raewXYB
The circle has a pointerdown handler that count up.
Even if the circle grows larger, clicking the bottom-right area of the circle does not trigger the event.
Additional Information
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodePen reproduction and the Arc hitArea behavior described in the issue. Trace how the Arc radius changes through a tween and how pointer input uses the hit area; done means the clickable region follows the resized visual Arc, including its expanded bottom-right area.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100