summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkPullToRefresh.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-05-03 21:51:58 +0900
committerGitHub <noreply@github.com>2025-05-03 21:51:58 +0900
commit90e69f4d10711511e4292b7014a8e6855cceee5a (patch)
treed7978fc34776d06db5609cc4aec7b966bf399f87 /packages/frontend/src/components/MkPullToRefresh.vue
parentperf(frontend): improve MkPullToRefresh render performance (diff)
downloadmisskey-90e69f4d10711511e4292b7014a8e6855cceee5a.tar.gz
misskey-90e69f4d10711511e4292b7014a8e6855cceee5a.tar.bz2
misskey-90e69f4d10711511e4292b7014a8e6855cceee5a.zip
add note
Diffstat (limited to 'packages/frontend/src/components/MkPullToRefresh.vue')
-rw-r--r--packages/frontend/src/components/MkPullToRefresh.vue1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkPullToRefresh.vue b/packages/frontend/src/components/MkPullToRefresh.vue
index 88ca331dd8..7f5148dac0 100644
--- a/packages/frontend/src/components/MkPullToRefresh.vue
+++ b/packages/frontend/src/components/MkPullToRefresh.vue
@@ -5,6 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div ref="rootEl" :class="isPulling ? $style.isPulling : null">
+ <!-- 小数が含まれるとレンダリングが高頻度になりすぎパフォーマンスが悪化するためround -->
<div v-if="isPulling" :class="$style.frame" :style="`--frame-min-height: ${Math.round(pullDistance / (PULL_BRAKE_BASE + (pullDistance / PULL_BRAKE_FACTOR)))}px;`">
<div :class="$style.frameContent">
<MkLoading v-if="isRefreshing" :class="$style.loader" :em="true"/>