1
0
Fork 1
mirror of https://example.com synced 2024-11-22 11:26:38 +09:00

chore: tweak pull-to-refresh thresholds

This commit is contained in:
naskya 2023-11-30 04:43:26 +09:00
parent b980171c0b
commit 3261ca879f
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -41,16 +41,16 @@
<script lang="ts" setup>
import { onMounted, onUnmounted, ref, shallowRef } from "vue";
import { deviceKind } from "@/scripts/device-kind";
// import { deviceKind } from "@/scripts/device-kind";
import { i18n } from "@/i18n";
import icon from "@/scripts/icon";
const SCROLL_STOP = 10;
const MAX_PULL_DISTANCE = Infinity;
const FIRE_THRESHOLD = 230;
const RELEASE_TRANSITION_DURATION = 200;
const FIRE_THRESHOLD = 140;
const RELEASE_TRANSITION_DURATION = 120;
const PULL_BRAKE_BASE = 1.5;
const PULL_BRAKE_FACTOR = 170;
const PULL_BRAKE_FACTOR = 100;
const pullStarted = ref(false);
const pullEnded = ref(false);