-
Notifications
You must be signed in to change notification settings - Fork 0
Fix move animation clipping beneath board border #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 7 commits
8f33bf3
34f9f73
592e9ad
cad0af6
5ff2963
26dbae4
0f9093a
87a2b4f
f7bcc02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,9 +37,8 @@ export default function MoveAnimation({ pairs, boardRef }: MoveAnimationProps) { | |
| } | ||
|
|
||
| const boardRect = board.getBoundingClientRect(); | ||
| const boardStyle = getComputedStyle(board); | ||
| const overlayLeft = boardRect.left + parseFloat(boardStyle.borderLeftWidth); | ||
| const overlayTop = boardRect.top + parseFloat(boardStyle.borderTopWidth); | ||
| const overlayLeft = boardRect.left; | ||
| const overlayTop = boardRect.top; | ||
|
||
|
|
||
| const points = board.querySelectorAll<HTMLElement>('.point'); | ||
| const bars = board.querySelectorAll<HTMLElement>('.bar'); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.