From da1e43fa1f43a296f1be8b49e00274cf7cedba00 Mon Sep 17 00:00:00 2001 From: vodyanoysh Date: Tue, 31 Mar 2026 22:09:57 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5:=20=D0=B4=D0=B5=D0=B9=D1=81=D1=82?= =?UTF-8?q?=D0=B2=D0=B8=D0=B5=20=D1=81=D0=B2=D0=B0=D0=B9=D0=BF=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B5=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D0=BD=D1=8F=D0=B5?= =?UTF-8?q?=D1=82=D1=81=D1=8F=20=D0=B4=D0=BE=20=D0=BE=D1=82=D0=BF=D1=83?= =?UTF-8?q?=D1=81=D0=BA=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D1=86=D0=B5=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IDLE_MS: 130 → 320ms — основная причина бага, пауза при движении больше не засчитывается как «отпустил жест» FLICK_SPEED: 14 → 22, FLICK_RATIO: 0.55 → 0.75 — флик требует более явного быстрого движения TRIGGER: 90 → 95px — чуть сложнее дотянуться до порога случайно Co-Authored-By: Claude Sonnet 4.6 --- src/renderer/src/components/messages/MessageListItem.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/components/messages/MessageListItem.vue b/src/renderer/src/components/messages/MessageListItem.vue index 049460c..6055ee9 100644 --- a/src/renderer/src/components/messages/MessageListItem.vue +++ b/src/renderer/src/components/messages/MessageListItem.vue @@ -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 // ─────────────────────────────────────────────────────────────