slider: fix logScale == -1
This commit is contained in:
parent
7eb73fefbd
commit
ce5fa36cd6
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ module.exports = {
|
|||
var logScale = revertlog ? Math.abs(rangeIn[1] - rangeIn[0]) :
|
||||
Math.abs(rangeOut[1] - rangeOut[0])
|
||||
|
||||
if (log !== true) logScale = Math.abs(log)
|
||||
if (log !== true && log !== -1) logScale = Math.abs(log)
|
||||
else if (logScale >= 100) logScale /= 10
|
||||
else logScale = Math.max(logScale, 10)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue