public class PointerEventsSupportImpl extends PointerEventsSupport
Constructor and Description |
---|
PointerEventsSupportImpl() |
Modifier and Type | Method and Description |
---|---|
<any> |
getChangedTouches(NativeEvent event)
Converts data in the event to Touch data structure
|
boolean |
isSupported()
Identifies whether pointer events are supported in the current running browser.
|
void |
setPointerCapture(XElement element,
NativeEvent event)
Assigns a pointer (by pointerId) to a specific Element.
|
void |
sinkPointerEvents(XElement element)
Sink pointer events to given Element.
|
isPointerEvent, isPointerTouchEvent
public boolean isSupported()
PointerEventsSupport
isSupported
in class PointerEventsSupport
public void setPointerCapture(XElement element, NativeEvent event)
PointerEventsSupport
Assigns a pointer (by pointerId) to a specific Element.
Unlike Touch events, the event.target changes with pointer events
setPointerCapture
in class PointerEventsSupport
element
- the element to capture pointer events forevent
- the event to be capturedpublic <any> getChangedTouches(NativeEvent event)
PointerEventsSupport
getChangedTouches
in class PointerEventsSupport
event
- the event to extract changed touches frompublic void sinkPointerEvents(XElement element)
PointerEventsSupport
Sink pointer events to given Element.
Makes the assumption that the DOMImpl has already initialized the EventSystem.
sinkPointerEvents
in class PointerEventsSupport
element
- the element to sink pointer events forCopyright © 2018. All rights reserved.