jQuery recognise click from user, not trigger
<p>So I have the code: </p>

<pre><code>function randomClick(interval){
        $(".thumbnail_holder .nav li:not(.empty):eq("+select+") a").trigger("click");
        window.randomTimer = setTimeout("randomClick("+interval+")", interval);
}
</code></pre>

<p>I need it so when a user click's <code>".thumbnail_holder .nav li a</code>, it clears the interval so for example</p>

<pre><code>$(".thumbnail_holder .nav li a").on("click", function(e){
    e.preventDefault();
    clearTimeout(window.randomTimer);
});
</code></pre>

<p>However the above code also happens on the <code>.trigger("click");</code>.</p>

<p>Is there any way the <code>.on</code> function can differentiate between the two?</p>
