Skip to content

HitArea is not updated correctly when changing an Arc’s size via Tween #7218

@laineus

Description

@laineus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions