When we are at the top of the page [.scrollTop() = 0] , we need to assign a fixed movement to the scroll wheel of the mouse (for example, 50px). Next scroll wheel should occur as standard. But only if we again rise to the top of the page [.scrollTop() = 0] , the fixed movement after the first scroll down is assigned again.

Thank.

  • What does it mean? How should this behavior look like? I twist the wheel down and he jumps to 50px? - zb '
  • @goddan, some kind of delusional task, but it's even worse that I took this nonsense. )) Guessing or not, but suppose you wanted [something like that] [1]. [1]: jsfiddle.net/Deonis/4cpsLke3 - Deonis
  • eicto, yes. I twist the wheel with any "force" - but jumps (the page is moved) only by 50 px - goddan
  • @Deonis, should, with any scrolling, move by 50px. In your example, if you are stronger "skrolut"), then jumps 50px. - goddan

0