import {SensorEvent} from '@shopify/draggable/src/Draggable/Sensors/SensorEvent/SensorEvent.js'
SensorEvent
Extends:
Base sensor event
Member Summary
Public Members | ||
public get |
Normalized clientX for both touch and mouse events |
|
public get |
Normalized clientY for both touch and mouse events |
|
public get |
container: HTMLElement Container that initiated the sensor |
|
public get |
originalEvent: Event Original browser event that triggered a sensor |
|
public get |
Trackpad pressure |
|
public get |
target: HTMLElement Normalized target for both touch and mouse events Returns the element that is behind cursor or touch pointer |
Public Members
public get clientX: Number source
Normalized clientX for both touch and mouse events
Properties:
Name | Type | Attribute | Description |
clientX | * |
public get clientY: Number source
Normalized clientY for both touch and mouse events
Properties:
Name | Type | Attribute | Description |
clientY | * |
public get container: HTMLElement source
Container that initiated the sensor
Properties:
Name | Type | Attribute | Description |
container | * |
public get originalEvent: Event source
Original browser event that triggered a sensor
Properties:
Name | Type | Attribute | Description |
originalEvent | * |
public get pressure: Number source
Trackpad pressure
Properties:
Name | Type | Attribute | Description |
pressure | * |
public get target: HTMLElement source
Normalized target for both touch and mouse events Returns the element that is behind cursor or touch pointer
Properties:
Name | Type | Attribute | Description |
target | * |