Class: TouchAction

TouchAction

new TouchAction(manager, value)

Touch Action
sets the touchAction property or uses the js alternative

Name Type Description
manager Manager
value String

Methods

compute(){String}

compute the value for the touchAction property based on the recognizer's settings

preventDefaults(input)

this method is called on each input cycle and provides the preventing of the browser behavior

Name Type Description
input Object

preventSrc(srcEvent)

call preventDefault to prevent the browser's default behavior (scrolling in most cases)

Name Type Description
srcEvent Object

set(value)

set the touchAction value on the element or enable the polyfill

Name Type Description
value String

just re-set the touchAction value