bug in regular expressions test tex #123

Closed
opened 2026-05-11 21:17:05 +00:00 by Zhekrom · 1 comment

Description

When scrolling through the page, the text displaying the username�jordan@spikersoft.com�remains anchored to the screen, to the point where it duplicates; the bug then disappears once the scrolling stops.

Observed behavior

  • When scrolling through the page, the text displaying the username�jordan@spikersoft.com�remains anchored to the screen.
  • The text duplicates.
  • The bug disappears once the scrolling stops.

Expected behavior

  • The text should scroll normally with the page.
  • No duplication or anchoring should occur.

Impact

  • Affects visual experience during scrolling.
  • May confuse users with duplicated text.

Clasification

  • Type: bug
  • Area: Regular expressions test / scrolling / text rendering
  • Several: low
  • Impact: Text duplication and anchoring during scroll affects readability
## Description When scrolling through the page, the text displaying the username�jordan@spikersoft.com�remains anchored to the screen, to the point where it duplicates; the bug then disappears once the scrolling stops. ## Observed behavior - When scrolling through the page, the text displaying the username�jordan@spikersoft.com�remains anchored to the screen. - The text duplicates. - The bug disappears once the scrolling stops. ## Expected behavior - The text should scroll normally with the page. - No duplication or anchoring should occur. ## Impact - Affects visual experience during scrolling. - May confuse users with duplicated text. ## Clasification - Type: bug - Area: Regular expressions test / scrolling / text rendering - Several: low - Impact: Text duplication and anchoring during scroll affects readability
Owner

Resolved in spikersoft-angular PR #44 (merged to master) — same root cause as #104.

In the Regex playground the test text is rendered twice: the editable textarea, plus a highlight overlay stacked on top that paints the colored match bands. The overlay syncs its scroll position to the textarea via a scroll handler, so during an active scroll the two text layers briefly desync — and because the overlay was also painting the matched glyphs (the .match-N palette set color:#fff), the matched substring (here the email jordan@spikersoft.com) appeared to "stick"/duplicate until scrolling stopped and the layers re-aligned.

The fix forces the overlay's own glyphs transparent (.test-highlight-layer span.match { color: transparent }), so exactly one readable text layer is painted (the textarea) and the overlay contributes only the background bands — eliminating the duplication during scroll. Closing — please reopen with a URL if you observe the same anchoring/duplication outside the Regex playground.

Resolved in `spikersoft-angular` PR #44 (merged to `master`) — same root cause as #104. In the Regex playground the test text is rendered twice: the editable textarea, plus a highlight overlay stacked on top that paints the colored match bands. The overlay syncs its scroll position to the textarea via a scroll handler, so during an active scroll the two text layers briefly desync — and because the overlay was also painting the matched glyphs (the `.match-N` palette set `color:#fff`), the matched substring (here the email `jordan@spikersoft.com`) appeared to "stick"/duplicate until scrolling stopped and the layers re-aligned. The fix forces the overlay's own glyphs transparent (`.test-highlight-layer span.match { color: transparent }`), so exactly one readable text layer is painted (the textarea) and the overlay contributes only the background bands — eliminating the duplication during scroll. Closing — please reopen with a URL if you observe the same anchoring/duplication outside the Regex playground.
Sign in to join this conversation.