#104 jquery convert to javascript

master
Agriya Dev5 2021-05-24 16:39:43 +05:30
parent 38483cc6c4
commit d69abde068
1 changed files with 2 additions and 3 deletions

View File

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