diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index a0d643f..3f4aec4 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -928,11 +928,13 @@ this.lastMousePosition = { x: this.width/2, y: this.height/2 }; this.vis.render(); }) .event("mousedown", () => { - if (this.activeSplineIndex !== splineIndex) { - this.activeSplineIndex = splineIndex; - this.refreshSplineElements(); - } - }); + if (pv.event.shiftKey) { + if (this.activeSplineIndex !== splineIndex) { + this.activeSplineIndex = splineIndex; + this.refreshSplineElements(); + } + }} + ); this.lineObjects.push(lineObj); }