mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
update zero case
This commit is contained in:
parent
6d1b35b8c4
commit
b140d71a42
|
@ -182,7 +182,7 @@
|
||||||
|
|
||||||
const diffX = paintInfo.endStubX - paintInfo.startStubX;
|
const diffX = paintInfo.endStubX - paintInfo.startStubX;
|
||||||
const diffY = paintInfo.endStubY - paintInfo.startStubY;
|
const diffY = paintInfo.endStubY - paintInfo.startStubY;
|
||||||
const direction = diffY > 0 ? 1 : -1;
|
const direction = diffY >= 0 ? 1 : -1;
|
||||||
|
|
||||||
var midx = paintInfo.startStubX + ((paintInfo.endStubX - paintInfo.startStubX) * midpoint),
|
var midx = paintInfo.startStubX + ((paintInfo.endStubX - paintInfo.startStubX) * midpoint),
|
||||||
midy;
|
midy;
|
||||||
|
|
Loading…
Reference in a new issue