| Function |
Defined By |
|
ElementMouseWheelEvent(x, y, deltaX, deltaY)
|
[Constructor] ElementMouseWheelEvent
|
Creates new ElementMouseWheelEvent instance.
| |
x : int
The X coordinate of the mouse relative to the object dispatching the mouse event.
|
| |
y : int
The Y coordinate of the mouse relative to the object dispatching the mouse event.
|
| |
deltaX : int
The change of the X position of the the mouse wheel. (Currently -1, 0, or +1)
|
| |
deltaY : int
The change of the Y position of the the mouse wheel. (Currently -1, 0, or +1)
|
|
|
|
getDeltaX()
|
ElementMouseWheelEvent
|
Gets the change of the X position of the mouse wheel. The system normalizes this
across browsers to values -1, 0, or +1.
| |
returns : int
The change of the X position of the mouse wheel.
|
|
|
|
getDeltaY()
|
ElementMouseWheelEvent
|
Gets the change of the Y position of the mouse wheel. The system normalizes this
across browsers to values -1, 0, or +1.
| |
returns : int
The change of the Y position of the mouse wheel.
|
|
|
| Function |
Defined By |
|
ElementMouseWheelEvent(x, y, deltaX, deltaY)
|
[Constructor] ElementMouseWheelEvent
|
Creates new ElementMouseWheelEvent instance.
| |
x : int
The X coordinate of the mouse relative to the object dispatching the mouse event.
|
| |
y : int
The Y coordinate of the mouse relative to the object dispatching the mouse event.
|
| |
deltaX : int
The change of the X position of the the mouse wheel. (Currently -1, 0, or +1)
|
| |
deltaY : int
The change of the Y position of the the mouse wheel. (Currently -1, 0, or +1)
|
|
|
|
cancelEvent()
|
DispatcherEvent
|
Prevents processing of any subsequent event handlers
|
|
|
clone()
|
DispatcherEvent
|
Duplicates an instance of an Event or Event subclass.
The event dispatcher calls this when dispatching or re-dispatching events to multiple targets.
When creating a custom event class, you should override this and call the base class's clone()
then copy the new event properties to the cloned instance.
| |
returns : DispatcherEvent
A new event object instance identical to the cloned instance.
|
|
|
|
getCurrentTarget()
|
ElementEvent
|
Gets the element that is currently dispatching the event. Note that is
is not always the same as getTarget() which returns the element that
originally dispatched the event.
For Example, when a click listener is registered to an element, and a child of that
element dispatches a click (like a Button), the target will be the child (Button) and the
current target will be the element that registered the click listener.
| |
returns : CanvasElement
The element that is currently dispatching the event.
|
|
|
|
getDefaultPrevented()
|
ElementEvent
|
Gets the default prevented state of the event.
| |
returns : boolean
Returns true if preventDefault() has been called, false otherwise.
|
|
|
|
getDeltaX()
|
ElementMouseWheelEvent
|
Gets the change of the X position of the mouse wheel. The system normalizes this
across browsers to values -1, 0, or +1.
| |
returns : int
The change of the X position of the mouse wheel.
|
|
|
|
getDeltaY()
|
ElementMouseWheelEvent
|
Gets the change of the Y position of the mouse wheel. The system normalizes this
across browsers to values -1, 0, or +1.
| |
returns : int
The change of the Y position of the mouse wheel.
|
|
|
|
getIsCanceled()
|
DispatcherEvent
|
Checks if the event has been canceled
| |
returns : boolean
Returns true if the event has been canceled, otherwise false
|
|
|
|
getPhase()
|
ElementEvent
|
Gets the current phase of the event. ("bubbling" or "capture")
| |
returns : String
String representing the event's current phase when dispatched ("bubbling" or "capture")
|
|
|
|
getTarget()
|
DispatcherEvent
|
Gets event target
| |
returns : Object
Object that originally dispatched the event
|
|
|
|
getType()
|
DispatcherEvent
|
Gets the event type
| |
returns : String
String representing the event type
|
|
|
|
getX()
|
ElementMouseEvent
|
Gets the X coordinate of the mouse relative to the object dispatching the mouse event.
| |
returns : int
The X coordinate of the mouse relative to the object dispatching the mouse event.
|
|
|
|
getY()
|
ElementMouseEvent
|
Gets the Y coordinate of the mouse relative to the object dispatching the mouse event.
| |
returns : int
The Y coordinate of the mouse relative to the object dispatching the mouse event.
|
|
|
|
preventDefault()
|
ElementEvent
|
Prevents the event's typical action from being taken. This is also sometimes used to "consume"
the event so it is only processed once. Such as preventing a mousewheel event from scrolling multiple
parent/child views at once. A scroll-able child will call preventDefault() to "consume" the event
and prevent any parents from also scrolling.
|
|