import ForceTouchSensor from '@shopify/draggable/src/Draggable/Sensors/ForceTouchSensor/ForceTouchSensor.js'
ForceTouchSensor
Extends:
This sensor picks up native force touch events and dictates drag operations
Constructor Summary
Public Constructor | ||
public |
constructor(containers: HTMLElement[] | NodeList | HTMLElement, options: Object) ForceTouchSensor constructor. |
Member Summary
Public Members | ||
public |
|
|
public |
dragging: * |
|
public |
Draggable element needs to be remembered to unset the draggable attribute after drag operation has completed |
Method Summary
Public Methods | ||
public |
attach() Attaches sensors event listeners to the DOM |
|
public |
detach() Detaches sensors event listeners to the DOM |
Private Methods | ||
private |
[onMouseDown](event: Event) Mouse down handler |
|
private |
[onMouseForceChange](event: Event) Mouse force change handler |
|
private |
[onMouseForceDown](event: Event) Mouse force down handler |
|
private |
[onMouseForceGlobalChange](event: Event) Mouse force global change handler |
|
private |
[onMouseForceWillBegin](event: Event) Mouse force will begin handler |
|
private |
[onMouseMove](event: Event) Mouse move handler |
|
private |
[onMouseUp](event: Event) Mouse up handler |
Public Constructors
Public Methods
Private Methods
private [onMouseDown](event: Event) source
Mouse down handler
Params:
Name | Type | Attribute | Description |
event | Event | Mouse down event |
private [onMouseForceChange](event: Event) source
Mouse force change handler
Params:
Name | Type | Attribute | Description |
event | Event | Mouse force change event |
private [onMouseForceDown](event: Event) source
Mouse force down handler
Params:
Name | Type | Attribute | Description |
event | Event | Mouse force down event |
private [onMouseForceGlobalChange](event: Event) source
Mouse force global change handler
Params:
Name | Type | Attribute | Description |
event | Event | Mouse force global change event |
private [onMouseForceWillBegin](event: Event) source
Mouse force will begin handler
Params:
Name | Type | Attribute | Description |
event | Event | Mouse force will begin event |
private [onMouseMove](event: Event) source
Mouse move handler
Params:
Name | Type | Attribute | Description |
event | Event | Mouse force will begin event |
private [onMouseUp](event: Event) source
Mouse up handler
Params:
Name | Type | Attribute | Description |
event | Event | Mouse up event |