¡@

Home 

2014/10/16 ¤W¤È 12:07:56

jquery Programming Glossary: scrollanimating

Call Scroll only when user scrolls, not when animate()

http://stackoverflow.com/questions/1659204/call-scroll-only-when-user-scrolls-not-when-animate

to set the animation value and set a flag indicating that the change comes from an animation. For example Untested var scrollAnimating false jQuery.fx.step.scrollTop function E scrollAnimating true E.elem.scrollTop E.now scrollAnimating false '#gototop' .click.. the change comes from an animation. For example Untested var scrollAnimating false jQuery.fx.step.scrollTop function E scrollAnimating true E.elem.scrollTop E.now scrollAnimating false '#gototop' .click function 'body' .animate scrollTop 0 3000 window .scroll.. Untested var scrollAnimating false jQuery.fx.step.scrollTop function E scrollAnimating true E.elem.scrollTop E.now scrollAnimating false '#gototop' .click function 'body' .animate scrollTop 0 3000 window .scroll function if scrollAnimating 'body' .stop..