mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
commit
b8651e1597
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ Blockly.FieldNumber.prototype.classValidator = function(text) {
|
|||
return null;
|
||||
}
|
||||
// Round to nearest multiple of precision.
|
||||
if (this.precision_ && Number.isFinite(n)) {
|
||||
if (this.precision_ && isFinite(n)) {
|
||||
n = Math.round(n / this.precision_) * this.precision_;
|
||||
}
|
||||
// Get the value in range.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue