Back to Draggable

README

src/Draggable/Sensors/SensorEvent/README.md

1.2.12.7 KB
Original Source

SensorEvent

The base sensor event for all Sensor events that sensors emits.

InterfaceSensorEvent
Cancelablefalse
Cancel action-
typesensor

API

sensorEvent.originalEvent: Event
Read-only property for the original event that triggered the sensor event.

sensorEvent.clientX: Number
Read-only property for current X coordinates.

sensorEvent.clientY: Number
Read-only property for current Y coordinates.

sensorEvent.target: HTMLElement
Read-only property for the normalized target for both touch and mouse events. Returns the element that is behind cursor or touch pointer.

sensorEvent.container: Number
Read-only property for the container that fired the sensor event.

sensorEvent.originalSource: String
Read-only property for the original source element that was picked up.

sensorEvent.pressure: Number
Read-only property for the pressure applied.

DragStartSensorEvent

DragStartSensorEvent gets triggered by sensors for drag start.

SpecificationSensorEvent
InterfaceDragStartSensorEvent
Cancelabletrue
Cancel actionPrevents drag start
typedrag:start

DragMoveSensorEvent

DragMoveSensorEvent gets triggered by sensors for drag move.

SpecificationSensorEvent
InterfaceDragMoveSensorEvent
Cancelablefalse
Cancel action-
typedrag:move

DragStopSensorEvent

DragStopSensorEvent gets triggered by sensors for drag stop.

SpecificationSensorEvent
InterfaceDragStopSensorEvent
Cancelablefalse
Cancel action-
typedrag:stop

DragPressureSensorEvent

DragPressureSensorEvent gets triggered by sensors for drag pressure.

SpecificationSensorEvent
InterfaceDragPressureSensorEvent
Cancelablefalse
Cancel action-
typedrag:pressure