Skip to content

Commit 8eebfaf

Browse files
authored
fix(cad): allow a snap distance of 0 (#220)
1 parent 2a451c9 commit 8eebfaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/control/cad.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ class CadControl extends Control {
417417

418418
document.getElementById('width-input').addEventListener('keyup', (evt) => {
419419
const snapPointDist = parseFloat(evt.target.value);
420-
if (snapPointDist) {
420+
if (!Number.isNaN(snapPointDist)) {
421421
this.setProperties({ snapPointDist });
422422
}
423423
});

0 commit comments

Comments
 (0)