We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6f482a commit df2ccb4Copy full SHA for df2ccb4
src/index.tsx
@@ -44,11 +44,11 @@ export function initScaledSettings(
44
45
// eslint-disable-next-line no-extend-native
46
Number.prototype.dimenScaled = function dimenScaled(): number {
47
- return (this as number) * dimenScale;
+ return Math.round((this as number) * dimenScale);
48
};
49
50
Number.prototype.fontScaled = function fontScaled(): number {
51
- return (this as number) * fontScale;
+ return Math.round((this as number) * fontScale);
52
53
}
54
initScaledSettings();
0 commit comments