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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -