From f4238e95da09d8759ad7f300b130ed7c2bca1359 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 16 May 2016 12:08:27 +0200 Subject: [PATCH] add the ability to disable mapToScale rounding (precision=false) --- browser/js/app/widgets/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/js/app/widgets/utils.js b/browser/js/app/widgets/utils.js index f3011a31..2f5bf793 100644 --- a/browser/js/app/widgets/utils.js +++ b/browser/js/app/widgets/utils.js @@ -27,7 +27,7 @@ module.exports = { value = Math.max(Math.min(rangeOut[0],rangeOut[1]),Math.min(value,Math.max(rangeOut[0],rangeOut[1]))) - value = Math.round(value*roundFactor)/roundFactor + if (precision!==false) value = Math.round(value*roundFactor)/roundFactor return value