fix: lil more precision
This commit is contained in:
parent
bc13e48fc7
commit
fe5f73e9a1
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user