Module: ol/interaction/Pointer

ol/interaction/Pointer


Classes

PointerInteraction

Type Definitions

Options{Object}

Properties:
Name Type Description
handleDownEvent function | undefined

Function handling "down" events. If the function returns true then a drag sequence is started.

handleDragEvent function | undefined

Function handling "drag" events. This function is called on "move" events during a drag sequence.

handleEvent function | undefined

Method called by the map to notify the interaction that a browser event was dispatched to the map. The function may return false to prevent the propagation of the event to other interactions in the map's interactions chain.

handleMoveEvent function | undefined

Function handling "move" events. This function is called on "move" events. This functions is also called during a drag sequence, so during a drag sequence both the handleDragEvent function and this function are called. If handleDownEvent is defined and it returns true this function will not be called during a drag sequence.

handleUpEvent function | undefined

Function handling "up" events. If the function returns false then the current drag sequence is stopped.

stopDown function | undefined

Should the down event be propagated to other interactions, or should be stopped?