aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aero.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/aero.js b/aero.js
index 695331f..c789026 100644
--- a/aero.js
+++ b/aero.js
@@ -48,8 +48,9 @@ function sparkleCursor() {
last = now;
const s = document.createElement('div');
s.className = 'sparkle';
- s.style.left = e.clientX + 'px';
- s.style.top = e.clientY + 'px';
+ const z = window.__uiScale || 1;
+ s.style.left = (e.clientX / z) + 'px';
+ s.style.top = (e.clientY / z) + 'px';
const theme = document.body.dataset.theme;
// chrome: iridescent / holographic palette (cyan→magenta→pink)
// aero: warm-cool rainbow as before