Class type Goog.​Fx.​dragger

class type dragger = object..end

Inherits


method defaultAction : int -> int -> unit Js.meth

Overridable function for handling the default action of the drag behaviour. Normally this is simply moving the element to x,y though in some cases it might be used to resize the layer. This is basically a shortcut to implementing a default ondrag event handler.

method disposeInternal : unit Js.meth

Tears down the drag object, removes listeners, and nullifies references.

method endDrag : 
Goog.Events.browserEvent Js.t -> bool Js.t Js.opt -> unit Js.meth

Event handler that is used to end the drag

method endDragCancel : Goog.Events.browserEvent Js.t -> unit Js.meth

Event handler that is used to end the drag by cancelling it.

method getEnabled : bool Js.t Js.meth

Set whether dragger is enabled

method getHandler : Goog.Events.eventHandler Js.t Js.meth

Returns the event handler, intended for subclass use. Returns The event handler.

method getHysteresis : int Js.meth

Gets the distance the user has to drag the element before a drag operation is started. Returns distance The number of pixels after which a mousedown and move is considered a drag.

method limitX : int -> int Js.meth

Returns the 'real' x after limits are applied (allows for some limits to be undefined). Returns The 'real' X-coordinate after limits are applied.

method limitY : int -> int Js.meth

Returns the 'real' y after limits are applied (allows for some limits to be undefined). Returns The 'real' Y-coordinate after limits are applied.

method setCancelIeDragStart : bool Js.t -> unit Js.meth

Enables cancelling of built-in IE drag events.

method setEnabled : bool Js.t -> unit Js.meth

Set whether dragger is enabled

method setHysteresis : int -> unit Js.meth

Sets the distance the user has to drag the element before a drag operation is started.

method setLimits : Goog.Math.rect Js.t Js.optdef -> unit Js.meth

Sets (or reset) the Drag limits after a Dragger is created.

method setScrollTarget : 
'a. (#Dom_html.eventTarget as 'a) Js.t -> unit Js.meth

Sets the SCROLL event target to make drag element follow scrolling.

method startDrag : Goog.Events.browserEvent Js.t -> unit Js.meth

Event handler that is used to start the drag