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:40:18 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-05-03 21:40:18 +0900
commite76e2534d7bfc4d6acb798f7c72f7190a0a0fa40 (patch)
tree3cc8f47e8ee283b24ea1a3ef5a742b5a810dcad0 /packages/frontend/src/components/MkPullToRefresh.vue
parenttweak MkPullToRefresh.vue (diff)
downloadmisskey-e76e2534d7bfc4d6acb798f7c72f7190a0a0fa40.tar.gz
misskey-e76e2534d7bfc4d6acb798f7c72f7190a0a0fa40.tar.bz2
misskey-e76e2534d7bfc4d6acb798f7c72f7190a0a0fa40.zip
perf(frontend): improve MkPullToRefresh render performance
Diffstat (limited to 'packages/frontend/src/components/MkPullToRefresh.vue')
-rw-r--r--packages/frontend/src/components/MkPullToRefresh.vue2
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>