#104 jquery convert to javascript
parent
38483cc6c4
commit
d69abde068
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue