The drag handler is used to deal with sequences of browser events related to dragging. The handler is used by controls that want to know when a drag sequence begins, when a drag is happening, and when it has finished.
Controls that use the drag handler typically construct it with callbacks for ‘down’, ‘move’, and ‘done’. Callbacks for these keys are called when the drag begins, with each move, and when the drag is done. In addition, controls can have callbacks keyed to ‘up’ and ‘out’ if they care to differentiate between the types of events that correspond with the end of a drag sequence.
Create a new drag handler with the OpenLayers.Handler.Drag constructor.
Inherits from
Summary
| The drag handler is used to deal with sequences of browser events related to dragging. |
| |
| {Boolean} When a mousedown event is received, we want to record it, but not set ‘dragging’ until the mouse moves after starting. |
| |
| |
| |
| |
| |
| Returns OpenLayers.Handler.Drag |
| |
| This method is called during the handling of the mouse down event. |
| This method is called during the handling of the mouse move event. |
| This method is called during the handling of the mouse up event. |
| This method is called during the handling of the mouse out event. |
| |
| |
| |
| |
| The drag handler captures the click event. |
| |
| |