From 5b1e37f7d30ffbbd1b1b3a536c16fbea07750a99 Mon Sep 17 00:00:00 2001 From: "Kayashov.SM" Date: Sun, 6 Sep 2026 02:00:13 +0400 Subject: [PATCH] =?UTF-8?q?front:=20=D1=84=D0=B8=D0=BA=D1=81=20=D0=B1?= =?UTF-8?q?=D0=B0=D0=B3=D0=B0=20=D1=82=D0=B0=D0=B9=D0=BC=D0=BB=D0=B0=D0=B9?= =?UTF-8?q?=D0=BD=D0=B0=20(=D0=BD=D0=B5=D0=BF=D0=BE=D0=BB=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Timeline.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/components/Timeline.jsx b/frontend/src/components/Timeline.jsx index 6577797..2a2fd6e 100644 --- a/frontend/src/components/Timeline.jsx +++ b/frontend/src/components/Timeline.jsx @@ -258,6 +258,12 @@ export default function Timeline({ } style={{ top: `${top}px`, height: `${height}px`, ...columnStyle(col, cols) }} onPointerDown={(e) => { + // stopPropagation - ДО beginDrag: если блок locked, beginDrag выходит + // раньше своего e.stopPropagation(), и pointerdown иначе всплывает + // на .tl-canvas (onPointerDown={() => onSelectId(null)}), тут же сбрасывая + // только что установленное выделение - баг "подсвечивается и тут же + // глючит" на заблокированных (FIXED/неактивных) блоках. + e.stopPropagation() onSelectId(item.id) beginDrag(e, item, 'move') }}