0

I have an image that is going to display that is 800 X 1200. I want the user to ONLY be able to scroll 1200 pixels to see the image but nothing else below it. Is there a way to do this in Javascript?

The background is fixed and when I try to give the DIV the ability to scroll, on a mobile device it scrolls so far and freezes.

I want to allow the user scroll down 1200 pixels and stop. Then give them the ability to scroll back up to view the entire image. Is this possible?

Shannon
  • 11
  • 2
  • With an onscroll event, you can check the scroll amount and disable scrolling [like this](https://stackoverflow.com/questions/4770025/how-to-disable-scrolling-temporarily) – Rojo Mar 18 '21 at 17:32

0 Answers0