Disable scroll-zooming on the view
This sample demonstrates how to disable scroll zooming on a MapView instance. Scroll zooming is enabled by default via the mouse-wheel event of the view.
To disable scroll zooming, you must call the stopPropagation()
method on the event object of the mouse-wheel event.
view.on("mouse-wheel", function(evt){
// prevents zooming with the mouse-wheel event
evt.stopPropagation();
});
Try zooming the view by scrolling the mouse-wheel.
Sample search results
Title | Sample |
---|
There were no match results from your search criteria.