Skip to content
Snippets Groups Projects
Commit 20b44d44 authored by Wellington Gabriel Vicente de Souza's avatar Wellington Gabriel Vicente de Souza
Browse files

[T3] fix bug with split lines functionality

parent cf854af1
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,7 @@ function handleMouse() {
break;
}
} else if (rightClick) {
if ((mouseY >= lines[i].y0 && mouseY <= lines[i].yf) || (mouseY >= lines[i].yf && mouseY <= lines[i].y0)) {
if (mouseX >= lines[i].x0 && mouseX <= lines[i].xf) {
lines[lines.length] = new Line(mouseX,mouseY,lines[i].xf,lines[i].yf);
lines[i].xf = mouseX;
......@@ -154,6 +155,7 @@ function handleMouse() {
}
}
}
}
function generatePolygon() {
edges = parseInt(document.getElementById("number").value,10);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment