Add constraintResolution option to MouseWheelZoom for zoom with trackpad

This commit is contained in:
Kai Culemann
2017-04-04 15:06:08 +02:00
parent 350b42ad91
commit c1adde6a13
2 changed files with 24 additions and 0 deletions

View File

@@ -3109,6 +3109,14 @@ olx.interaction.MouseWheelZoomOptions.prototype.duration;
olx.interaction.MouseWheelZoomOptions.prototype.timeout;
/**
* Zoom to the closest integer zoom level after trackpad zoom ends. Default is `false`.
* @type {boolean|undefined}
* @api
*/
olx.interaction.MouseWheelZoomOptions.prototype.constrainResolution;
/**
* Enable zooming using the mouse's location as the anchor. Default is `true`.
* When set to false, zooming in and out will zoom to the center of the screen