summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkUserPopup.vue
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-04-01 20:44:24 +0900
committerGitHub <noreply@github.com>2024-04-01 20:44:24 +0900
commitb4b47d85cf50486980cc3fa3575cf48c7fb0a2e7 (patch)
tree7dcebec4c043c22c37c36c048304aeaa1b59ec5d /packages/frontend/src/components/MkUserPopup.vue
parentfix(frontend): ページデザインの修正 (#13642) (diff)
downloadsharkey-b4b47d85cf50486980cc3fa3575cf48c7fb0a2e7.tar.gz
sharkey-b4b47d85cf50486980cc3fa3575cf48c7fb0a2e7.tar.bz2
sharkey-b4b47d85cf50486980cc3fa3575cf48c7fb0a2e7.zip
refactor(frontend): use `scrollX` or `scrollY` (#13645)
Diffstat (limited to 'packages/frontend/src/components/MkUserPopup.vue')
-rw-r--r--packages/frontend/src/components/MkUserPopup.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkUserPopup.vue b/packages/frontend/src/components/MkUserPopup.vue
index fb1a8f4fdc..41b27a1afb 100644
--- a/packages/frontend/src/components/MkUserPopup.vue
+++ b/packages/frontend/src/components/MkUserPopup.vue
@@ -106,8 +106,8 @@ onMounted(() => {
}
const rect = props.source.getBoundingClientRect();
- const x = ((rect.left + (props.source.offsetWidth / 2)) - (300 / 2)) + window.pageXOffset;
- const y = rect.top + props.source.offsetHeight + window.pageYOffset;
+ const x = ((rect.left + (props.source.offsetWidth / 2)) - (300 / 2)) + window.scrollX;
+ const y = rect.top + props.source.offsetHeight + window.scrollY;
top.value = y;
left.value = x;