Home > Enterprise >  When scrollTop 0 how to scroll up
When scrollTop 0 how to scroll up

Time:11-13

I wanna impl android wheel time picker in js

I find this demo: enter image description here

CodePudding user response:

Whenever a user scrolls, it affects an elements scrolling box. windows.scrollTo() will affect the scrolling box of the uppermost containing block. This affects people call it scrolling the window or document.

CodePudding user response:

I find the tmp solution

when scrollTop 0, scroll view event "scroll" doesn't trigger, event "wheel"(mouse wheel scroll up) and "touchmove"(mobile drag to scroll up) still work

  • Related