goog.events.Event | |
goog.events.BrowserEvent | goog.events.Event |
goog.events.MouseWheelEvent | goog.events.BrowserEvent |
detail
: number
The number of rows the user scrolled.
|
browserEvent
: Event
Browser event object.
|
deltaX
: number
The number of rows the user scrolled in the X
direction.
|
deltaY
: number
The number of rows the user scrolled in the Y
direction.
|
![]()
No description.
|
code » | |||
![]()
No description.
Returns: Event
The underlying browser event object.
|
code » | |||
![]()
Accepts a browser event object and creates a patched, cross browser event
object.
Arguments:
|
code » | |||
Tests to see which button was pressed during the event. This is really only
useful in IE and Gecko browsers. And in IE, it's only useful for
mousedown/mouseup events, because click only fires for the left mouse button.
Safari 2 only reports the left button being clicked, and uses the value '1'
instead of 0. Opera only reports a mousedown event for the middle button, and
no mouse events for the right button. Opera has default behavior for left and
middle click that can only be overridden via a configuration setting.
There's a nice table of this mess at http://www.unixpapa.com/js/mouse.html.
Arguments:
Returns: boolean
True if button was pressed.
|
code » | |||
Whether this has an "action"-producing mouse button.
By definition, this includes left-click on windows/linux, and left-click
without the ctrl key on Macs.
Returns: boolean
The result.
|
code » | |||
![]()
No description.
|
code » | |||
![]()
No description.
|
code » |
![]()
Events don't need to be disposed.
For backwards compatibility (goog.events.Event used to inherit
goog.Disposable).
|
code » | |
![]()
Events don't need to be disposed.
For backwards compatibility (goog.events.Event used to inherit
goog.Disposable).
|
code » | |
![]()
Prevents the default action, for example a link redirecting to a url.
|
code » | |
![]()
Stops event propagation.
|
code » |
![]()
No description.
|
Code » | |
![]()
The number of "lines" scrolled in the X direction.
Note that not all browsers provide enough information to distinguish
horizontal and vertical scroll events, so for these unsupported browsers,
we will always have a deltaX of 0, even if the user scrolled their mouse
wheel or trackpad sideways.
Currently supported browsers are Webkit and Firefox 3.1 or later.
|
Code » | |
![]()
The number of lines scrolled in the Y direction.
|
Code » | |
![]()
The number of lines the user scrolled
|
Code » |
![]()
Whether alt was pressed at time of event.
|
Code » | |
![]()
Which mouse button was pressed.
|
Code » | |
![]()
Keycode of key press.
|
Code » | |
![]()
X-coordinate relative to the window.
|
Code » | |
![]()
Y-coordinate relative to the window.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Whether control was pressed at time of event.
|
Code » | |
![]()
Node that had the listener attached.
|
Code » | |
![]()
The browser event object.
|
Code » | |
![]()
Keycode of key press.
|
Code » | |
![]()
Whether the meta key was pressed at time of event.
|
Code » | |
![]()
X-coordinate relative to target.
|
Code » | |
![]()
Y-coordinate relative to target.
|
Code » | |
![]()
Whether the default platform modifier key was pressed at time of event.
(This is control for all platforms except Mac, where it's Meta.)
|
Code » | |
![]()
For mouseover and mouseout events, the related object for the event.
|
Code » | |
![]()
X-coordinate relative to the monitor.
|
Code » | |
![]()
Y-coordinate relative to the monitor.
|
Code » | |
![]()
Whether shift was pressed at time of event.
|
Code » | |
![]()
History state object, only set for PopState events where it's a copy of the
state object provided to pushState or replaceState.
|
Code » | |
![]()
Target that fired the event.
|
Code » |
![]()
Object that had the listener attached.
|
Code » | |
![]()
Whether the default action has been prevented.
This is a property to match the W3C specification at
http://www.w3.org/TR/DOM-Level-3-Events/
#events-event-type-defaultPrevented .
Must be treated as read-only outside the class.
|
Code » | |
![]()
Whether to cancel the event in internal capture/bubble processing for IE.
|
Code » | |
![]()
Return value for in internal capture/bubble processing for IE.
|
Code » | |
![]()
Target of the event.
|
Code » | |
![]()
Event type.
|
Code » |
![]()
No description.
|
Code » |