Merge pull request #6671 from kaiCu/master

Add constraintResolution option to MouseWheelZoom for zoom with trackpad
This commit is contained in:
Andreas Hocevar
2017-04-10 08:47:30 +02:00
committed by GitHub
2 changed files with 24 additions and 0 deletions

View File

@@ -3110,6 +3110,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