Fix scaled font blurriness in context menus (#400)

Requires that fonts scale in increments of 0.25.
This commit is contained in:
filtered
2024-12-28 05:51:53 +11:00
committed by GitHub
parent 54d7292d24
commit 0b161c1195

View File

@@ -194,7 +194,7 @@ export class ContextMenu {
root.style.left = left + "px"
root.style.top = top + "px"
if (options.scale) root.style.transform = `scale(${options.scale})`
if (options.scale) root.style.transform = `scale(${Math.round(options.scale * 4) * 0.25})`
}
addItem(