# scroll

type | String
default | "default"

init

    $( map selector ).geomap( { scroll: "default" } );

get

    var scroll = $( map selector ).geomap( "option", "scroll" );

set

    $( map selector ).geomap( "option", "scroll", "off" );

The scroll option determines what the map widget does when the user rotates a mouse wheel. There are currently three values: default, zoom, and off. However, default is currently the same as zoom.

When scroll is default or zoom, users can use a mouse wheel to zoom the map in or out.

When set to off, mouse wheel scrolling is ignored. This is useful when the document itself or a section that contains the map requires scrolling due to content. A desktop user will expect to be able to use the mouse wheel to scroll the document and you don't want the map to interfere. For example, if the user's mouse cursor is over a map that's part of a long document, there's a greater chance they will want the mouse wheel to scroll document instead of zooming the map. Set the scroll property to "off" to ensure the wheel will work as expected.