diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-05-03 21:40:18 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-05-03 21:40:18 +0900 |
| commit | e76e2534d7bfc4d6acb798f7c72f7190a0a0fa40 (patch) | |
| tree | 3cc8f47e8ee283b24ea1a3ef5a742b5a810dcad0 /packages/frontend | |
| parent | tweak MkPullToRefresh.vue (diff) | |
| download | misskey-e76e2534d7bfc4d6acb798f7c72f7190a0a0fa40.tar.gz misskey-e76e2534d7bfc4d6acb798f7c72f7190a0a0fa40.tar.bz2 misskey-e76e2534d7bfc4d6acb798f7c72f7190a0a0fa40.zip | |
perf(frontend): improve MkPullToRefresh render performance
Diffstat (limited to 'packages/frontend')
| -rw-r--r-- | packages/frontend/src/components/MkPullToRefresh.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkPullToRefresh.vue b/packages/frontend/src/components/MkPullToRefresh.vue index 8d411595fd..88ca331dd8 100644 --- a/packages/frontend/src/components/MkPullToRefresh.vue +++ b/packages/frontend/src/components/MkPullToRefresh.vue @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only <template> <div ref="rootEl" :class="isPulling ? $style.isPulling : null"> - <div v-if="isPulling" :class="$style.frame" :style="`--frame-min-height: ${pullDistance / (PULL_BRAKE_BASE + (pullDistance / PULL_BRAKE_FACTOR))}px;`"> + <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"/> <i v-else class="ti ti-arrow-bar-to-down" :class="[$style.icon, { [$style.refresh]: isPulledEnough }]"></i> |