Skip to content

Jittering positioning of the TextAnnotatorPopup on scroll #119

@oleksandr-danylchenko

Description

@oleksandr-danylchenko

Issue

When the text selection stops higher up in the content and then you start scrolling up/down, the popup starts to jump over the selection range:

sporadic_movement.mov

Personally, I find that kinda distracting, especially on smaller screen sizes:

Screen.Recording.2024-07-12.at.18.29.47.mov

Also, with autoPlacement the popup is constantly displayed over the annotated content

Suggested Changes

We can use a more temperate positioning like top + inline() middleware. Additionally, we can limit the crossAxis scrolling and let the user scroll from the popup. Which feels a bit more pleasant and intuitive (IMHO).

Existing solutions

The visual example I like is the Slab.com:
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions