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 downCodePudding 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