Home Reference Source
public class | source

ForceTouchSensor

Extends:

* → ForceTouchSensor

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
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

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 constructor(containers: HTMLElement[] | NodeList | HTMLElement, options: Object) source

ForceTouchSensor constructor.

Params:

NameTypeAttributeDescription
containers HTMLElement[] | NodeList | HTMLElement

Containers

options Object

Options

Public Members

public currentContainer: * source

public dragging: * source

public mightDrag: Boolean source

Draggable element needs to be remembered to unset the draggable attribute after drag operation has completed

Properties:

NameTypeAttributeDescription
mightDrag *

Public Methods

public attach() source

Attaches sensors event listeners to the DOM

public detach() source

Detaches sensors event listeners to the DOM

Private Methods

private [onMouseDown](event: Event) source

Mouse down handler

Params:

NameTypeAttributeDescription
event Event

Mouse down event

private [onMouseForceChange](event: Event) source

Mouse force change handler

Params:

NameTypeAttributeDescription
event Event

Mouse force change event

private [onMouseForceDown](event: Event) source

Mouse force down handler

Params:

NameTypeAttributeDescription
event Event

Mouse force down event

private [onMouseForceGlobalChange](event: Event) source

Mouse force global change handler

Params:

NameTypeAttributeDescription
event Event

Mouse force global change event

private [onMouseForceWillBegin](event: Event) source

Mouse force will begin handler

Params:

NameTypeAttributeDescription
event Event

Mouse force will begin event

private [onMouseMove](event: Event) source

Mouse move handler

Params:

NameTypeAttributeDescription
event Event

Mouse force will begin event

private [onMouseUp](event: Event) source

Mouse up handler

Params:

NameTypeAttributeDescription
event Event

Mouse up event