Is it possible to capture mouse events on a scroll bar in JavaScript
Posted
by Nathan
on Stack Overflow
See other posts from Stack Overflow
or by Nathan
Published on 2010-05-12T03:51:23Z
Indexed on
2010/05/12
4:04 UTC
Read the original article
Hit count: 343
I have an HTML element with overflow: scroll
. The click event listener registered with the element is triggered when I click on the element, but not when I click on the scroll bar for the element. Is it possible to capture mouse events which occur on an HTML element's scroll bar?
The reason I want to do this is to make a visual popup element disappear when ever a click event occurs anywhere outside the popup element.
© Stack Overflow or respective owner