Back to Draggable

README

src/Plugins/Collidable/CollidableEvent/README.md

1.2.12.2 KB
Original Source

Collidable event

The base collidable event for all Collidable events that Collidable emits.

InterfaceCollidableEvent
Cancelablefalse
Cancel action-
typecollidable

API

collidableEvent.dragEvent: DragEvent
Read-only property for drag event that triggered this collidable event

CollidableInEvent

CollidableInEvent gets triggered by Collidable when colliding with an element specified by the collidable options.

SpecificationCollidableEvent
InterfaceCollidableInEvent
Cancelablefalse
Cancel action-
typecollidable:in

API

collidableEvent.collidingElement: HTMLElement
Read-only property for currently colliding element

CollidableOutEvent

CollidableOutEvent gets triggered by Collidable when leaving a colliding area.

SpecificationCollidableEvent
InterfaceCollidableOutEvent
Cancelablefalse
Cancel action-
typecollidable:out

API

collidableEvent.collidingElement: HTMLElement
Read-only property for previously colliding element