From 899c3556b8ca5c87434912afbd19d109cd26ac7d Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Fri, 30 Aug 2024 16:38:25 -0600 Subject: [PATCH] fix: Add `will-change: transform` to force anti-aliasing. * Add a hint so browsers will still try to apply AA to our rotated key positions. --- src/keyboard/PhysicalLayout.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/keyboard/PhysicalLayout.tsx b/src/keyboard/PhysicalLayout.tsx index 54d0282..50732f5 100644 --- a/src/keyboard/PhysicalLayout.tsx +++ b/src/keyboard/PhysicalLayout.tsx @@ -49,6 +49,7 @@ function scalePosition( left, transformOrigin, transform, + willChange: "transform", }; }