OpenLayers.Handler.MouseWheel - OpenLayers

# OpenLayers.Handler.MouseWheel

Handler for wheel up/down events.

#### Inherits from

- OpenLayers.Handler

Summary

OpenLayers.Handler.MouseWheel | Handler for wheel up/down events.
Properties |
wheelListener | {function}
interval | {Integer} In order to increase server performance, an interval (in milliseconds) can be set to reduce the number of up/down events called.
maxDelta | {Integer} Maximum delta to collect before breaking from the current interval.
delta | {Integer} When interval is set, delta collects the mousewheel z-deltas of the events that occur within the interval.
cumulative | {Boolean} When interval is set: true to collect all the mousewheel z-deltas, false to only record the delta direction (positive or negative)
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.
activate |
deactivate |

### Properties

### wheelListener

{function}

### interval

{Integer} In order to increase server performance, an interval (in milliseconds) can be set to reduce the number of up/down events called. If set, a new up/down event will not be set until the interval has passed. Defaults to 0, meaning no interval.

### maxDelta

{Integer} Maximum delta to collect before breaking from the current interval. In cumulative mode, this also limits the maximum delta returned from the handler. Default is Number.POSITIVE_INFINITY.

### delta

{Integer} When interval is set, delta collects the mousewheel z-deltas of the events that occur within the interval. See also the cumulative option

### cumulative

{Boolean} When interval is set: true to collect all the mousewheel z-deltas, false to only record the delta direction (positive or negative)

### Constructor

### 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}

### Functions

### destroy

> destroy: function()

### onWheelEvent

> onWheelEvent: function( | e | )

Catch the wheel event and handle it xbrowserly

#### Parameters

e | {Event}

### wheelZoom

> wheelZoom: 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.

#### Parameters

e | {Event}

### activate

> activate: function ( | evt | )

### deactivate

> deactivate: function ( | evt | )

> destroy: function()

> onWheelEvent: function( | e | )

Catch the wheel event and handle it xbrowserly

> wheelZoom: 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.

> activate: function ( | evt | )

> deactivate: function ( | evt | )

Base class to construct a higher-level handler for event sequences.
Controls affect the display or behavior of the map.
Close