mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-15 03:17:05 +02:00
I noticed that when performing a smooth scroll up or down, we would repeatedly enter `Navigable::perform_a_scroll_of_the_viewport()` when the top or bottom (respectively) of the page was reached. Optimize this case by returning early when we've reached the intended target scroll position and we're not performing any vertical or horizontal scrolling.
151 KiB
151 KiB