Trap mouse click event in Applescript

I am trying to trap mouse click events in Safari with Applescript. My Applescript scrolls the page slowly, but I want to pause if the user clicks on the document in Safari. I would like to set up an On_Click event in Applescript that would fire if the user clicks in the Safari document.