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