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.