fx.DragEvent Extends goog.events.Event
Object representing a drag event

Inheritance

Constructor

goog.fx.DragEvent(typedragobjclientXclientYbrowserEventopt_actXopt_actYopt_dragCanceled)

Parameters

type : string
Event type.
dragobj : goog.fx.Dragger
Drag object initiating event.
clientX : number
X-coordinate relative to the viewport.
clientY : number
Y-coordinate relative to the viewport.
browserEvent : goog.events.BrowserEvent
The closure object representing the browser event that caused this drag event.
opt_actX : number=
Optional actual x for drag if it has been limited.
opt_actY : number=
Optional actual y for drag if it has been limited.
opt_dragCanceled : boolean=
Whether the drag has been canceled.

Instance Methods

Public Protected Private
dispose()
Events don't need to be disposed. For backwards compatibility (goog.events.Event used to inherit goog.Disposable).
code »
disposeInternal()
Events don't need to be disposed. For backwards compatibility (goog.events.Event used to inherit goog.Disposable).
code »
preventDefault()
Prevents the default action, for example a link redirecting to a url.
code »
stopPropagation()
Stops event propagation.
code »

Instance Properties

browserEvent : goog.events.BrowserEvent
The closure object representing the browser event that caused this drag event.
Code »
clientX :
X-coordinate relative to the viewport
Code »
clientY :
Y-coordinate relative to the viewport
Code »
constructor :
No description.
Code »
dragCanceled :
Whether drag was canceled with this event. Used to differentiate between a legitimate drag END that can result in an action and a drag END which is a result of a drag cancelation. For now it can happen 1) with drag END event on FireFox when user drags the mouse out of the window, 2) with drag END event on IE7 which is generated on MOUSEMOVE event when user moves the mouse into the document after the mouse button has been released, 3) when TOUCHCANCEL is raised instead of TOUCHEND (on touch events).
Code »
dragger : goog.fx.Dragger
Reference to the drag object for this event
Code »
left :
The real x-position of the drag if it has been limited
Code »
top :
The real y-position of the drag if it has been limited
Code »
currentTarget :
Object that had the listener attached.
Code »
defaultPrevented :
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 »
propagationStopped_ :
Whether to cancel the event in internal capture/bubble processing for IE.
Code »
returnValue_ :
Return value for in internal capture/bubble processing for IE.
Code »
target :
Target of the event.
Code »
type :
Event type.
Code »

Static Properties

goog.fx.DragEvent.superClass_ :
No description.
Code »

Package fx

Package Reference