Skip to content

Commit

Permalink
Fix scaled font blurriness in context menus
Browse files Browse the repository at this point in the history
Requires that fonts scale in increments of 0.25.
  • Loading branch information
webfiltered committed Dec 27, 2024
1 parent c7ce89e commit 4559fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ContextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4559fac

Please sign in to comment.