mirror of
https://github.com/Siccity/xNode.git
synced 2026-02-15 03:21:36 +08:00
Increase crispyness of UI text
This commit is contained in:
parent
55fb7586d8
commit
2651bfbeb5
@ -54,7 +54,12 @@ namespace XNodeEditor {
|
|||||||
Repaint();
|
Repaint();
|
||||||
}
|
}
|
||||||
} else if (e.button == 1 || e.button == 2) {
|
} else if (e.button == 1 || e.button == 2) {
|
||||||
panOffset += e.delta * zoom;
|
Vector2 tempOffset = panOffset;
|
||||||
|
tempOffset += e.delta * zoom;
|
||||||
|
// Round value to increase crispyness of UI text
|
||||||
|
tempOffset.x = Mathf.Round(tempOffset.x);
|
||||||
|
tempOffset.y = Mathf.Round(tempOffset.y);
|
||||||
|
panOffset = tempOffset;
|
||||||
isPanning = true;
|
isPanning = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user