BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Page pointer appears out of page and disapears when scolling

Open LilMouse opened this issue 1 month ago • 0 comments

Describe the Bug

When trying to link/comment on part of a big table, the pointer appears at the top of the table. Usually this is good behavior due to #3774 . But now when I select something lower down the table, the pointer appears out of the screen. Or when the top is just barely visible it appears there and disappears when I scroll toward it.

This also happens when selecting text in a list or quote element where the top is (almost) scrolled out of view.

Steps to Reproduce

  1. Create a long text table (10+ rows) (with some paragraphs/data after it so scrolling brings the top of the table out of view.)
  2. Add text to the last cell.
  3. Publish the page
  4. Scroll down the page so the top of the table is no longer in view
  5. Select the last bit of text in the table
  6. If scrolled just right you can still see that the pointer pops up at the top of the table but the rest is cut off.
  7. When scrolling towards the pointer pop-up, it disappears.
  8. If the top of the table is fully out of view, no pointer pops up

Or on the demo site https://demo.bookstackapp.com/link/2#bkmrk-shopping-list, scroll until the text "Biscuits" is at the top and select "Teabags"

Expected Behaviour

When the top of the selected element is not in view, the pointer should either:

  • Show up around the selected text
  • Not disappear when scrolling and the text is still selected.

Screenshots or Additional Context

Pointer/pop up at table top

Image

Pointer out of screen (cut off is end of the screen, not end of the screenshot) Image

Same with a list on the demo page, where the purple is my browser window.

Image

Browser Details

Tested on windows 11, firefox & chrome

Exact BookStack Version

self hosted v25.07 and the demo site.

LilMouse avatar Oct 17 '25 10:10 LilMouse