🏠 back to Observable

clicked point scrolls out of view when leaving an unpinned editor view

Right now, if I have an unpinned editor view open somewhere near the top of the page, and I click somewhere else further down the page (e.g. in a pinned editor view), the closing editor view I’m leaving causes the page to scroll, sometimes very significantly. Often the place I just clicked ends up entirely off the screen.

It’s quite frustrating to then scroll around hunting for what I was looking at previously.

It would be great if the platform could detect the case where an unpinned editor view is currently off-screen above the current browser viewport, and scroll the viewport up the screen by an appropriate amount to compensate when the editor view gets hidden.

1 Like

I put up a related github issue: