diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index 531aebe..9a40a15 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -236,7 +236,7 @@ function createSplineEditor(context, reset=false) { .event("mousedown", pv.Behavior.drag()) .event("dragstart", function() { i = this.index; - if (pv.event.button === 2) { + if (pv.event.button === 2 && i !== 0 && i !== points.length - 1) { points.splice(i--, 1); vis.render(); }