Handler for wheel up/down events.
| OpenLayers. Handler. MouseWheel | Handler for wheel up/down events. |
| Properties | |
| wheelListener | {function} |
| mousePosition | {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. |
| Constructor | |
| OpenLayers. Handler. MouseWheel | |
| Functions | |
| destroy | |
| onWheelEvent | Catch the wheel event and handle it xbrowserly |
| wheelZoom | Given the wheel event, we carry out the appropriate zooming in or out, based on the ‘wheelDelta’ or ‘detail’ property of the event. |
| mousemove | Update the stored mousePosition on every move. |
| activate | |
| deactivate |
{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.
| 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: function()
Catch the wheel event and handle it xbrowserly
onWheelEvent: function( e )
Given the wheel event, we carry out the appropriate zooming in or out, based on the ‘wheelDelta’ or ‘detail’ property of the event.
wheelZoom: function( e )
Update the stored mousePosition on every move.
mousemove: function ( evt )
activate: function ( evt )
deactivate: function ( evt )