I saw that I can detect if the browser window is scrolled to bottom.
How to detect if browser window is scrolled to bottom?
But I wonder if it is possible to detect if the browser window is scrolled to the right edge of a page since I am making a horizontally long page.