Back to Draggable

README

src/Plugins/Snappable/SnappableEvent/README.md

1.2.11.9 KB
Original Source

Snap event

The base snap event for all Snap events that Snappable emits.

InterfaceSnapEvent
Cancelablefalse
Cancel action-
typesnap

API

snapEvent.dragEvent: DragEvent
Read-only property for drag event that triggered this snappable event

snapEvent.snappable: HTMLElement
Read-only property for the element that you are about to snap into or out of

SnapInEvent

SnapInEvent gets triggered by Snappable before snapping into place.

SpecificationSnapEvent
InterfaceSnapInEvent
Cancelabletrue
Cancel actionPrevents snap in effect
typesnap:in

SnapOutEvent

SnapOutEvent gets triggered by Snappable before snapping out.

SpecificationSnapEvent
InterfaceSnapOutEvent
Cancelabletrue
Cancel actionPrevents snap out effect
typesnap:out