mirror of
https://github.com/Siccity/xNode.git
synced 2026-02-06 23:34:54 +08:00
Increase crispyness of UI text
This commit is contained in:
parent
55fb7586d8
commit
2651bfbeb5
@ -54,7 +54,12 @@ namespace XNodeEditor {
|
||||
Repaint();
|
||||
}
|
||||
} 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;
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user