chore: tweak pull-to-refresh thresholds
This commit is contained in:
parent
b980171c0b
commit
3261ca879f
1 changed files with 4 additions and 4 deletions
|
@ -41,16 +41,16 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, onUnmounted, ref, shallowRef } from "vue";
|
import { onMounted, onUnmounted, ref, shallowRef } from "vue";
|
||||||
import { deviceKind } from "@/scripts/device-kind";
|
// import { deviceKind } from "@/scripts/device-kind";
|
||||||
import { i18n } from "@/i18n";
|
import { i18n } from "@/i18n";
|
||||||
import icon from "@/scripts/icon";
|
import icon from "@/scripts/icon";
|
||||||
|
|
||||||
const SCROLL_STOP = 10;
|
const SCROLL_STOP = 10;
|
||||||
const MAX_PULL_DISTANCE = Infinity;
|
const MAX_PULL_DISTANCE = Infinity;
|
||||||
const FIRE_THRESHOLD = 230;
|
const FIRE_THRESHOLD = 140;
|
||||||
const RELEASE_TRANSITION_DURATION = 200;
|
const RELEASE_TRANSITION_DURATION = 120;
|
||||||
const PULL_BRAKE_BASE = 1.5;
|
const PULL_BRAKE_BASE = 1.5;
|
||||||
const PULL_BRAKE_FACTOR = 170;
|
const PULL_BRAKE_FACTOR = 100;
|
||||||
|
|
||||||
const pullStarted = ref(false);
|
const pullStarted = ref(false);
|
||||||
const pullEnded = ref(false);
|
const pullEnded = ref(false);
|
||||||
|
|
Loading…
Reference in a new issue