* fixes bug where float numbers could not be used as input for e.g. buffer radius
    * supports up to two digits
This commit is contained in:
mpeltriaux 2023-03-16 08:12:51 +01:00
parent 0fb40a5568
commit e2cbe7eb73

View File

@ -196,6 +196,7 @@ netgis.Toolbar.prototype.createToolbarInput = function( title, value, callback )
var input = document.createElement( "input" );
input.setAttribute( "type", "number" );
input.setAttribute( "min", 0 );
input.setAttribute( "step", 0.01 );
input.value = value;
input.addEventListener( "change", callback );
input.addEventListener( "keyup", callback );