I think there's something in here? https://www.statox.fr/posts/2021/03/breaking_habits_floating_window/