I have this code:
$("*").bind("mousedown.sg", { 'self':this }, this.sgMousedown);
It simple bind event listener on all elements at the page and it work correctly in all browsers except chrome. In chrome listener bind even on the scroll bar so that it stops responding to clicks.
The question is which selector can I use to avoid this ?
Not sure what you're trying to achieve, but is binding to the body an option?
$("body").bind("mousedown.sg", { 'self':this }, this.sgMousedown);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With