#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, 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue