$device
Device related helpers
Table of Contents
Methods
gathersXYPositionFrom
(
X,y
-
container -
evt
Gathers UI iteraction X/Y coordinates from an event
Parameters:
-
containerHTMLElementThe element that contains the bounding rect we'll use to gather relative positioning data
-
evtEventThe event we're extracting information from
Returns:
X,y:
Values
on
(
-
targetElement -
iteractionType -
triggerWrapper
Registers a delegate to a given element event
Parameters:
-
targetElementHTMLElementThe element that we're interested in
-
iteractionTypeStringThe event name
-
triggerWrapperFunctionThe delegate
Properties
isTouch
Bool
Whether or not to the current devide is touchscreen