jquery - With javascript / query, is there a way to just "nudge" or "flick" the scroll so it's interruptible by the user (better description within) -


i want js automatically scroll slight bit down page, want scroll interruptible user.

when using jquery auto scroll, when animate scroll .animate , user starts scrolling while animation scroll still going interact each other , create strange jumping effect.

is there way make when user scroll during javascript scroll stop javascript scroll?

it can't done since can't know if end-user scrolled or scrolled page via javascript.

a scroll event sent whenever element's scroll position changes, regardless of cause. mouse click or drag on scroll bar, dragging inside element, pressing arrow keys, or using mouse's scroll wheel cause event.

docs


what tried failed because above:

// callback scroll event $(document.body).scroll(function(){     // stop scrolling!     $('html, body').stop(); }); 

a not working demo...


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -