Added event in on() callback
Don't click if the user selected text

Filters out click events that occur when the user selects text.
Added the event to the callback