Skip to content

Fix HtmlTextView jumping to top of page #4206

@justin-delano

Description

@justin-delano

Feature description

I’ve noticed some odd scrolling behavior related to HtmlTextView.

When a game description is rendered in an HtmlTextView, clicking anywhere inside it often makes the parent ScrollViewer jump so that the description area is snapped to the top of the window.

Repro:

  • Desktop mode
  • Any theme using HtmlTextView for the game description (e.g. FusionX)
  • Pick a game with a long HTML description
  • Click inside the HtmlTextView (anywhere in the text)
  • Result: the view suddenly scrolls and recenters around the HtmlTextView.

It looks like HtmlTextView (or its child HtmlPanel) is triggering a BringIntoView/RequestBringIntoView when it’s clicked. That behavior is pretty noticeable in themes with extra tabs and custom content, because a simple click in the description unexpectedly shifts the whole layout.

Request:
would it be possible for HtmlTextView to either:

  • stop requesting BringIntoView on mouse click, or

  • expose an option/flag so themes can disable that behavior?

Screenshots

After clicking on the description in FusionX:
Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions