Is there any event that will be raised on scrollbar click.
my requirement is once i click or start dragging the horizontal scrollbar sometask i need to perform.Can anybobody plz let me know which javascript event suits my requirement.
在Firefox 29中,这在mousedown事件中有效(如果单击滚动条,则为true):
if (e.explicitOriginalTarget.tagName === 'HTML')
The closest you'll get is
document.onscroll = function(){alert("you scrolled");}
or in jQuery
$(document).scroll(function(){alert("you scrolled");});
Different browsers handle it in different ways, generally they fire everytime the page moves a pixel or more. In Android browsers it only updates when you stop scrolling.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.