Namespace sap.m.touchModule: sap/m/library


Touch helper.

Method Summary
sap.m.touch.countContained(oTouchList, vElement)Given a list of touches, count the number of touches related with the given element.
sap.m.touch.find(oTouchList, oTouch)Given a list of touch objects, find the touch that matches the given one.
Method Detail
sap.m.touch.countContained(oTouchList, vElement): number
Given a list of touches, count the number of touches related with the given element.
Parameters:
{TouchList}oTouchList The list of touch objects to search.
{jQuery|Element|string}vElement A jQuery element or an element reference or an element id.
Returns:
{number} The number of touches related with the given element.
sap.m.touch.find(oTouchList, oTouch): object|undefined
Given a list of touch objects, find the touch that matches the given one.
Parameters:
{TouchList}oTouchList The list of touch objects to search.
{Touch|number}oTouch A touch object to find or a Touch.identifier that uniquely identifies the current finger in the touch session.
Returns:
{object|undefined} The touch matching if any.