web-search-navigator
web-search-navigator copied to clipboard
Trigger infinite scroll on youtube home page
While navigating through the youtube home page, we can only navigate the initially loaded results. The home page has infinite scroll and since the current navigation method does not actually scroll to the end of the page (even when we reach the last available result), new result are not currently loaded
One solution could be to try to align the highlighted result at a particular level. I think could be done by implementing something similar to #360
Bug Demo: (Just like #360, a quick fix is to scroll down a little bit)
https://user-images.githubusercontent.com/57226514/171969024-1c76252a-17bd-4882-8a95-61db0084ed11.mp4
Thanks, confirmed
@infokiller were there any efforts made on any branch to implement scroll_lookahead as mentioned here - https://github.com/infokiller/web-search-navigator/issues/35#issuecomment-427666259
This could be solved by setting a lookahead size of 1 and instead of looking ahead just the result (in case of normal navigation) we could look ahead a complete row of results (for a grid navigation in case of youtube here)
And it makes sense to add another enum here (if in any case this has to be an optional behavior) and scroll_lookahead = 1 * itemsPerRow should do
Does this sound like a good approach to fix this?
No efforts made so far. Your approach sounds good.