Skip to content

Commit

Permalink
Fix scaled font blurriness in context menus (#400)
Browse files Browse the repository at this point in the history
Requires that fonts scale in increments of 0.25.
  • Loading branch information
webfiltered authored Dec 27, 2024
1 parent 54d7292 commit 0b161c1
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 0b161c1

Please sign in to comment.