исправление: действие свайпа не применяется до отпускания пальцев
IDLE_MS: 130 → 320ms — основная причина бага, пауза при движении больше не засчитывается как «отпустил жест» FLICK_SPEED: 14 → 22, FLICK_RATIO: 0.55 → 0.75 — флик требует более явного быстрого движения TRIGGER: 90 → 95px — чуть сложнее дотянуться до порога случайно Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1c1137e362
commit
da1e43fa1f
1 changed files with 4 additions and 4 deletions
|
|
@ -32,14 +32,14 @@ const dateDisplay = computed(() => formatMessageDate(props.message.date))
|
|||
// ─────────────────────────────────────────────────────────────
|
||||
const CLICK_DIST = 6 // px — max displacement to count as a tap/click
|
||||
const MIN_DRAG = 38 // px horizontal before we start the visual swipe
|
||||
const TRIGGER = 90 // px visual offset → action fires
|
||||
const FLICK_SPEED = 14 // last-event deltaX that counts as a "flick"
|
||||
const FLICK_RATIO = 0.55 // flick trigger = TRIGGER * FLICK_RATIO
|
||||
const TRIGGER = 95 // px visual offset → action fires
|
||||
const FLICK_SPEED = 22 // last-event deltaX that counts as a "flick"
|
||||
const FLICK_RATIO = 0.75 // flick trigger = TRIGGER * FLICK_RATIO
|
||||
const DEAD_ZONE = 44 // px accumulated deltaX before item starts moving (wheel)
|
||||
const SCALE = 0.50 // visual px per accumulated deltaX past dead zone
|
||||
const RUBBER_PEAK = 72 // visual px where rubber-band starts
|
||||
const RUBBER_K = 0.12 // fraction of excess applied past rubber peak
|
||||
const IDLE_MS = 130 // ms of wheel silence → gesture over
|
||||
const IDLE_MS = 320 // ms of wheel silence → gesture over
|
||||
const H_RATIO = 2.2 // deltaX must be ≥ deltaY × H_RATIO to start gesture
|
||||
|
||||
// ─────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Reference in a new issue