настройка: дополнительное снижение чувствительности свайпа
MIN_DRAG: 22 → 38px, DEAD_ZONE: 28 → 44px, H_RATIO: 1.8 → 2.2 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a0a21100b3
commit
1c1137e362
1 changed files with 3 additions and 3 deletions
|
|
@ -31,16 +31,16 @@ const dateDisplay = computed(() => formatMessageDate(props.message.date))
|
|||
// Constants
|
||||
// ─────────────────────────────────────────────────────────────
|
||||
const CLICK_DIST = 6 // px — max displacement to count as a tap/click
|
||||
const MIN_DRAG = 22 // px horizontal before we start the visual swipe
|
||||
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 DEAD_ZONE = 28 // px accumulated deltaX before item starts moving
|
||||
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 H_RATIO = 1.8 // deltaX must be ≥ deltaY × H_RATIO to start gesture
|
||||
const H_RATIO = 2.2 // deltaX must be ≥ deltaY × H_RATIO to start gesture
|
||||
|
||||
// ─────────────────────────────────────────────────────────────
|
||||
// Reactive / template state
|
||||
|
|
|
|||
Loading…
Reference in a new issue