Home > front end >  Judge onscroll slide up or down
Judge onscroll slide up or down

Time:10-18

Judge onscroll slide up or down

CodePudding user response:

Record before rolling the scrollTop of values, use after rolling scrollTop value minus the value of the record the result is negative value to scroll up, the result is positive for scroll down
  • Related