OpenLayers. Handler.Drag

Summary
{Boolean} When a mousedown event is received, we want to record it, but not set ‘dragging’ until the mouse moves after starting.
{Boolean}
{OpenLayers.Pixel}
Private.
Returns OpenLayers.Handler.Drag
Handle mousedown events
Handle mousemove events
Handle mouseup events
Handle mouseout events
The drag handler captures the click event.
Activate the handler.
Deactivate the handler.

Properties

started

{Boolean} When a mousedown event is received, we want to record it, but not set ‘dragging’ until the mouse moves after starting.

dragging

{Boolean}

start

{OpenLayers.Pixel}

oldOnselectstart

Private.  {Function}

Functions

OpenLayers. Handler.Drag

Returns OpenLayers.Handler.Drag

Parameters

control{OpenLayers.Control}
callbacks{Object} An object containing a single function to be called when the drag operation is finished.  The callback should expect to recieve a single argument, the point geometry.
options{Object}

mousedown

mousedown: function (evt)

Handle mousedown events

Parameters

evt{Event}

Return: {Boolean} Should the event propagate

mousemove

mousemove: function (evt)

Handle mousemove events

Parameters

evt{Event}

Return: {Boolean} Should the event propagate

mouseup

mouseup: function (evt)

Handle mouseup events

Parameters

evt{Event}

Return: {Boolean} Should the event propagate

mouseout

mouseout: function (evt)

Handle mouseout events

Parameters

evt{Event}

Return: {Boolean} Should the event propagate

click

click: function (evt)

The drag handler captures the click event.  If something else registers for clicks on the same element, its listener will not be called after a drag.

Parameters

evt{Event}

Return: {Boolean} Should the event propagate

activate

activate: function()

Activate the handler.

Return: {Boolean} Was activation successful.  Returns false if already active.

deactivate

deactivate: function()

Deactivate the handler.

Return: {Boolean} Was deactivation successful.  Returns false if already active.

mousedown: function (evt)
Handle mousedown events
mousemove: function (evt)
Handle mousemove events
mouseup: function (evt)
Handle mouseup events
mouseout: function (evt)
Handle mouseout events
click: function (evt)
The drag handler captures the click event.
activate: function()
Activate the handler.
deactivate: function()
Deactivate the handler.