Skip to content

mouseReleaseOnEntity does not fire when mouse is released after moving off the entity #2360

Description

@zedwick

The mouseReleaseOnEntity signal is not emitted when the mouse is not over the entity which had been clicked. The documentation states it should be emitted:

Triggered when a mouse button is released after clicking on an entity or the controller trigger is partly or fully released after pressing on an entity, even if the mouse pointer or controller laser has moved off the entity.

Seems it is also triggered after the mouse is pressed away from the entity, and then released on the entity.

mousePressAndRelease.js

I have attached a simple client entity script which can be added as a script to any entity to test this behaviour.

Click (and hold) the entity to color it green, release on the entity to color it red. It should be colored red when releasing off the entity, as described in the documentation, but it is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Script APIScripting API bugs and feature requestsbugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions