diff --git a/src/svgcanvas/path-actions.js b/src/svgcanvas/path-actions.js index 8426bc4a..9969efb5 100644 --- a/src/svgcanvas/path-actions.js +++ b/src/svgcanvas/path-actions.js @@ -456,10 +456,9 @@ export const pathActionsMethod = (function () { // else, create a new point, update path element } else { // Checks if current target or parents are #svgcontent - if (!$.contains( - editorContext_.getContainer(), + if (!(editorContext_.getContainer() !== editorContext_.getMouseTarget(evt) && editorContext_.getContainer().contains( editorContext_.getMouseTarget(evt) - )) { + ))) { // Clicked outside canvas, so don't make point return false; }