Suwayomi / Suwayomi-WebUI

Mozilla Public License 2.0
107 stars 50 forks source link

Wait for initial page to be rendered before scrolling it into view #696

Closed schroda closed 5 months ago

schroda commented 5 months ago

The ResizeObserver triggers the first time when the element has a height of 0, which apparently did not work with scrolling it into view.

Due to immediately disconnecting the observer, the next resize event, which would successfully scroll the page into view, was never handled

Regression introduced with 0c1abebaf47b0cd92c0f32cad316e867e96e322c