It's indeed a click event, not a mousedown. I even didn't think to listen for mousedown, thanks for the suggestion!