Lower pixel tolerance to avoid accidental vertex deltion

This commit is contained in:
ahocevar
2014-03-28 11:37:06 +01:00
parent e612330dd7
commit b9cd512ffc
2 changed files with 2 additions and 2 deletions

View File

@@ -488,7 +488,7 @@
/** /**
* @typedef {Object} olx.interaction.ModifyOptions * @typedef {Object} olx.interaction.ModifyOptions
* @property {number|undefined} pixelTolerance Pixel tolerance for considering * @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.style.Style>|ol.feature.StyleFunction|undefined} style FeatureOverlay style. * @property {ol.style.Style|Array.<ol.style.Style>|ol.feature.StyleFunction|undefined} style FeatureOverlay style.
* @property {ol.Collection} features The features the interaction works on. * @property {ol.Collection} features The features the interaction works on.
*/ */

View File

@@ -87,7 +87,7 @@ ol.interaction.Modify = function(options) {
* @private * @private
*/ */
this.pixelTolerance_ = goog.isDef(options.pixelTolerance) ? this.pixelTolerance_ = goog.isDef(options.pixelTolerance) ?
options.pixelTolerance : 20; options.pixelTolerance : 10;
/** /**
* @type {Array} * @type {Array}