diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 32b6831867..3bfbbf22c9 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -488,7 +488,7 @@ /** * @typedef {Object} olx.interaction.ModifyOptions * @property {number|undefined} pixelTolerance Pixel tolerance for considering - * the pointer close enough to a vertex for editing. Default is 20 pixels. + * the pointer close enough to a vertex for editing. Default is 10 pixels. * @property {ol.style.Style|Array.|ol.feature.StyleFunction|undefined} style FeatureOverlay style. * @property {ol.Collection} features The features the interaction works on. */ diff --git a/src/ol/interaction/modifyinteraction.js b/src/ol/interaction/modifyinteraction.js index 6e95f85706..6ae5a2e76b 100644 --- a/src/ol/interaction/modifyinteraction.js +++ b/src/ol/interaction/modifyinteraction.js @@ -87,7 +87,7 @@ ol.interaction.Modify = function(options) { * @private */ this.pixelTolerance_ = goog.isDef(options.pixelTolerance) ? - options.pixelTolerance : 20; + options.pixelTolerance : 10; /** * @type {Array}