Skip to content

Commit

Permalink
update cursor viewbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Aug 27, 2023
1 parent 6850718 commit aa9ed97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface Cursor<T> {
function getSvgForCursor(color: string) {
return `<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="13 9 35 35"
viewBox="10 9 34 34"
width="36"
height="36"
fill="none"
Expand Down Expand Up @@ -161,7 +161,7 @@ export const initCursorChat = <T>(
others.set(me.id, me)
sendUpdate = false
}
}, 80)
}, 50)


document.onmousemove = (evt) => {
Expand Down Expand Up @@ -224,6 +224,7 @@ export const initCursorChat = <T>(
} else {
updated_chat_div.classList.add("show")
}

updated_chat_div.innerText = updated_cursor.chat
updated_cursor_div.classList.remove("new")
cursor_interp.get(cursor_id)!.addPoint([updated_cursor.x, updated_cursor.y]);
Expand Down

0 comments on commit aa9ed97

Please sign in to comment.