Skip to content

Commit

Permalink
fix(cursor): switch to transform positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
navn-r committed Sep 15, 2023
1 parent b1b7b91 commit 93a9f92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Cursor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
const setPosition = (e: HTMLElement, x: number, y: number) => {
if (e?.style) {
e.style.top = `${y}px`;
e.style.left = `${x}px`;
e.style.transform = `translate(-50%, -50%) translate(${x}px, ${y}px)`;
}
};
Expand Down

0 comments on commit 93a9f92

Please sign in to comment.