phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
23 lines (21 loc) • 784 B
JavaScript
/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Matter Physics Drag End Event.
*
* This event is dispatched by a Matter Physics World instance when a Pointer Constraint
* stops dragging a body.
*
* Listen to it from a Scene using: `this.matter.world.on('dragend', listener)`.
*
* @event Phaser.Physics.Matter.Events#DRAG_END
* @type {string}
* @since 3.16.2
*
* @param {MatterJS.BodyType} body - The Body that has stopped being dragged. This is a Matter Body, not a Phaser Game Object.
* @param {Phaser.Physics.Matter.PointerConstraint} constraint - The Pointer Constraint that was dragging the body.
*/
module.exports = 'dragend';