Extends
- EventTarget
Members
(private) currentMode_ :string
- Description:
Defines the current interaction mode:
MOUSE
,TAB
orTOUCH
- Source:
Defines the current interaction mode: MOUSE
, TAB
or TOUCH
Type:
- string
(private) isMouseDetected_ :boolean
- Description:
Defines if a mouse interaction was detected.
- Source:
Defines if a mouse interaction was detected.
Type:
- boolean
(private) isTabDetected_ :boolean
- Description:
Defines if a keyboard tab interaction was detected.
- Source:
Defines if a keyboard tab interaction was detected.
Type:
- boolean
(private) isTouchDetected_ :boolean
- Description:
Defines if a touch interaction was detected.
- Source:
Defines if a touch interaction was detected.
Type:
- boolean
(private) setCssClasses_ :boolean
- Description:
Specifies whether one of the classes
is-mouse-mode
,is-tab-mode
oris-touch-mode
should be added to the main document element as a representation of the current interaction mode.
- Source:
Specifies whether one of the classes is-mouse-mode
, is-tab-mode
or is-touch-mode
should be added to the main document element as a representation of the current interaction mode.
Type:
- boolean
Methods
getMode()
- Description:
Returns the current interaction mode
- Source:
(private) handleKeyUp_(event)
- Description:
Monitors the interaction by key
- Source:
Parameters:
Name | Type | Description |
---|---|---|
event |
Event |
(private) handleModeChange_()
- Description:
Changes the current interaction mode and fires a EventType.CHANGE event when the mode changes.
- Source:
(private) handleMouseMove_(event)
- Description:
Monitors the interaction with the mouse
- Source:
Parameters:
Name | Type | Description |
---|---|---|
event |
Event |
(private) handleTouchStart_(event)
- Description:
Monitors the interaction by touch
- Source:
Parameters:
Name | Type | Description |
---|---|---|
event |
Event |