fix: lil more precision

This commit is contained in:
cha0s 2019-04-21 20:37:01 -05:00
parent bc13e48fc7
commit fe5f73e9a1

View File

@ -69,8 +69,8 @@ export class TextNode {
position[0] -= realOffset[0];
position[1] += realOffset[1];
}
position[0] = Math.round(position[0] * 2) / 2;
position[1] = Math.round(position[1] * 2) / 2;
position[0] = Math.round(position[0] * 4) / 4;
position[1] = Math.round(position[1] * 4) / 4;
if (
!this.lastPosition
|| this.lastPosition[0] !== position[0]