From d69abde06870b0f3722cdfc7b2422872f1ecf93a Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Mon, 24 May 2021 16:39:43 +0530 Subject: [PATCH] #104 jquery convert to javascript --- src/svgcanvas/path-actions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }