fix: cursor smooth movement on higher refreshrate monitors

This commit is contained in:
HorizonCode committed 2026-05-21 20:30:00 +02:00
1 parent 6f8043d2d0
commit afdd74175a
3 files changed
+21 -19

No files matched your search

@@ -101,7 +101,7 @@
duration: smoothCursor ? $cursorSmoothness : 0,
translateX: mouseX,
translateY: mouseY,
ease: (t: number) => (t - 1) ** 5 + 1,
ease: (t: number) => t === 1 ? 1 : 1 - Math.pow(2, -10 * t),
});
animate(cursor, {