Class: WheelEvent

H.mapevents.WheelEvent

new H.mapevents.WheelEvent (deltaY, viewportX, viewportY, target, originalEvent)

This class represents an event fired when the mouse wheel is turned, with the mouse pointer on the map. It contains information about the cursor position and the map object directly under the mouse pointer.

Name Type Description
deltaY number

The wheel move delta on the y-axis

viewportX number

The x-coordinate of the event in the viewport

viewportY number

The y-coordinate of the event in the viewport

target H.Map | H.map.Object

The target element of the event

originalEvent Event

An object representing the original event

Extends

Members

AT_TARGET number constant inherited

This property indicates that the event is being evaluated at the target.

BUBBLING_PHASE number constant inherited

This property identifies the current event phase as the bubbling phase.

CAPTURING_PHASE number constant inherited

This property identifies the current event phase as the capturing phase.

currentTarget * inherited

This property holds an object that receives notification of the event (via an attached listener).

defaultPrevented boolean inherited

This property holds a value indicating if preventDefault() was called on the current event.

delta number

This property holds a value indicating the wheel move delta.

eventPhase number inherited

This property indicates which phase of the event flow is being evaluated.

originalEvent Event non-null

This property holds the original mouse wheel event object.

This property holds the target for the event.

type string inherited

This property holds the name of the dispatched event.

viewportX number

This property holds a value indicating map viewport x-position.

viewportY number

This property holds a value indicating map viewport y-position.

Methods

preventDefault () inherited

This method sets a flag that can be used to prevent the default behavior when the even is fired.

stopPropagation () inherited

This method stops the propagation of the event.