Click on the embed content and it does not open

Report

From web: click on the embed in this comment

The original embed should show but it does not

Steps to reproduce

    Open Gabo’s standalone comment in the web app.

    Move the pointer onto “here is where I am gonna…” in its embedded document, pause, press briefly, then release without dragging.

    Watch whether the browser opens the source document or stays on the comment.

Expected and actual

Expected: open “Embed, insert and change views” at the embedded block on the source document. Actual on clean main: the comment remains open and the embedded text becomes selected. The source title and block are already visible inside the comment, so their mere presence does not show navigation succeeded.

Before: clean main stays on Gabo’s comment with the embed text selected

Cause

A normal press on this non-editable embed can select its text in Chromium. The embed click handler rejected every click whenever any text was selected, including a deliberate stationary click; no navigation began. An earlier attempt changed how the outgoing comment page handles a destination URL fragment, but that did not fix the deliberate text click. Main has since added a fragment guard of its own; the PR now keeps main’s guard and contains only the click fix.

Fix

The embed now records where a primary-button press begins. It declines navigation when the pointer actually drags across selected text, but opens the source when the press and release stay in place—even if Chromium selects text as a side effect. Links inside the embed still handle their own clicks. The same hovered/held click reached the source page both locally and on the public preview at the current PR head.

After: on the new PR head, the same click locally opens the source document

PR and preview

PR: https://github.com/seed-hypermedia/seed/pull/1475

The public PR preview was verified on the final PR head with the same hovered and held click, then retired on merge; it is no longer an active test endpoint. Actual merged main commit.

How to verify

Use the comment link above and perform the same hovered, brief press-and-release on its text. The browser must leave the comment permalink, open the source document at block oHjyFdQ1, and show that block on the destination page. Drag across the text separately: it should select without navigating. The unchanged hovered click passed locally and on the public preview at the current head, with zero browser errors; all 14 exact-head CI checks have completed (12 success, two expected publish skips). Detailed investigation and before evidence.


Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime