update zero case

This commit is contained in:
Mutasem 2021-11-02 09:38:26 +01:00
parent 6d1b35b8c4
commit b140d71a42

View file

@ -182,7 +182,7 @@
const diffX = paintInfo.endStubX - paintInfo.startStubX;
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),
midy;