Constructor
new TouchDevice(element)
Create a new touch device and attach it to an element
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | The element to attach listen for events on |
- Source:
Methods
attach(element)
Attach a device to an element in the DOM.
If the device is already attached to an element this method will detach it first
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | The element to attach to |
- Source:
detach()
Detach a device from the element it is attached to
- Source: