public AdfTouchMoveManager(HTMLElement element, Function handlerCallback, Number touchCount)
AdfTouchMoveManager is a manager for handling touch movements.
Parameters:
element
-
the element for which touches will be listened
handlerCallback
-
a function that will be invoked when a touch movement occurs
with a non-zero movement, the first parameter is the average
delta x movement, the second parameter is the average delta y
movement
touchCount
-
the exact number of touches that must move for the handlerCallback to be
invoked
Method Detail
Init
protected Object Init(HTMLElement element, Function handlerCallback, Number touchCount)
Constructs an AdfTouchMoveManager for handling touch movements.
Parameters:
element
-
the element for which touches will be listened
handlerCallback
-
a function that will be invoked when a touch movement occurs
with a non-zero movement, the first parameter is the average
delta x movement, the second parameter is the average delta y
movement
touchCount
-
the exact number of touches that must move for the handlerCallback to be
invoked