diff options
Diffstat (limited to 'packages/frontend/src/components/MkPullToRefresh.vue')
| -rw-r--r-- | packages/frontend/src/components/MkPullToRefresh.vue | 1 |
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"/> |