From 3e78c0bf662b6e12b8844ee93697f75b23a97b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 00:50:57 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20a=20live=20refresh=20that?= =?UTF-8?q?=20lands=20while=20a=20mouse=20button=20is=20held=20waits=20for?= =?UTF-8?q?=20the=20release,=20so=20a=20click=20on=20a=20run=20page=20row?= =?UTF-8?q?=20is=20no=20longer=20lost=20to=20a=20swap=20under=20the=20poin?= =?UTF-8?q?ter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/forge-web/assets/nav.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/forge-web/assets/nav.js b/crates/forge-web/assets/nav.js index 1267459..2381083 100644 --- a/crates/forge-web/assets/nav.js +++ b/crates/forge-web/assets/nav.js @@ -544,6 +544,8 @@ }).then(function (res) { o.result = res; if (mark !== latest) { return; } + // A swap under a held button would take the press's element away, and the click with it. + if (o.how === 'live' && pressing) { liveDirty = true; return; } if (res.down) { if (o.how !== 'live') { outage(o); } return; } if (res.leave) { leave(res, o); return; } // A code view keeps its page when a live refresh fails. A 404 means its path is gone at the new ref.