Improve scroll to top behaviour
Compare changes
On July, 8th between 18:00 and 22:00 gitlab.tugraz.at may not be available (Reason: maintenance work / gitlab updates). We will upgrade to version 18.1.x. For a list of breaking changes see https://about.gitlab.com/blog/2025/04/18/a-guide-to-the-breaking-changes-in-gitlab-18-0/.
Hardcoded values are now replaced by calculated ones. The current position is now calculated and passed on correctly, so that the current scroll position is always held until the sticky position. As soon as the scroll position is below the sticky position, the menu remains sticky and the content is set to the beginning.