diff --git a/doc/Control.MousePosition.txt b/doc/Control.MousePosition.txt index 9b3e8564ec..3025453210 100644 --- a/doc/Control.MousePosition.txt +++ b/doc/Control.MousePosition.txt @@ -13,7 +13,7 @@ A small control which displays the Longitude and Latitude of the current mouse p separator -- html to separate the longitude and latitude values (default: '
') suffix -- html to follow the latitude value (default: '') numdigits -- number of digits to the right of the decimal (default: 5) - granularity -- a change of how many pixels is considered a mouse move (default: 1) + granularity -- Don't refresh display if mouse has moved more than this (default: 10) prefix, separator, and suffix are used to format the lon/lat values. diff --git a/lib/OpenLayers/Control/MousePosition.js b/lib/OpenLayers/Control/MousePosition.js index 05ac00200a..a8d7650387 100644 --- a/lib/OpenLayers/Control/MousePosition.js +++ b/lib/OpenLayers/Control/MousePosition.js @@ -27,7 +27,7 @@ OpenLayers.Control.MousePosition.prototype = numdigits: 5, /** @type int */ - granularity: 1, + granularity: 10, /** @type OpenLayers.LonLat */ lastXy: null,