javascript - I have a div with scrollbars. How can I detect if someone mousedowns on the scrollbar? -
i have div scrollbars. how can detect if mousedowns on scrollbar?
you can use jquery scroll function .scroll()
, pass function called when scrolling occurs. see here more info.
example:
$('#targetdiv').scroll(function(event) { //stuff when scrolled });
you might able use event data see if mouse button pressed.
Comments
Post a Comment