diff --git a/libpov.js b/libpov.js index 7fa7d7c..a1cb7e1 100644 --- a/libpov.js +++ b/libpov.js @@ -1681,6 +1681,10 @@ function updateCoordinateDisplay(pixelX, pixelY) { heat_precision = 1; } else if (heat_range >= 1) { heat_precision = 2; + } else if (heat_range >= 0.1) { + heat_precision = 5; + } else if (heat_range >= 0.001) { + heat_precision = 10; } let humidity_precision = null; @@ -1690,6 +1694,10 @@ function updateCoordinateDisplay(pixelX, pixelY) { humidity_precision = 1; } else if (humidity_range >= 1) { humidity_precision = 2; + } else if (humidity_range >= 0.1) { + humidity_precision = 5; + } else if (humidity_range >= 0.001) { + humidity_precision = 10; } let heatStr, humidityStr;