Prevent user from selecting DOM element when clicking detector