OpenLayers. Handler. MouseWheel

Handler for wheel up/down events.

Inherits from

Summary
Handler for wheel up/down events.
{function}
Private.
Catch the wheel event and handle it xbrowserly
Update the stored mousePosition on every move.

Properties

wheelListener

{function}

mousePosition

Private.  {OpenLayers.Pixel} mousePosition is necessary because evt.clientX/Y is buggy in Moz on wheel events, so we cache and use the value from the last mousemove.

Functions

OpenLayers. Handler. MouseWheel

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}

destroy

destroy: function()

onWheelEvent

onWheelEvent: function(e)

Catch the wheel event and handle it xbrowserly

Parameters

e{Event}

mousemove

mousemove: function (evt)

Update the stored mousePosition on every move.

Parameters

evt{Event} The browser event

Return

{Boolean} Allow event propagation

activate

activate: function (evt)

deactivate

deactivate: function (evt)
destroy: function()
onWheelEvent: function(e)
Catch the wheel event and handle it xbrowserly
mousemove: function (evt)
Update the stored mousePosition on every move.
activate: function (evt)
deactivate: function (evt)
Base class to construct a higher-level handler for event sequences.
This class represents a screen coordinate, in x and y coordinates