Safari and Google Chrome Stop Responding Unless I Click Off of Page
For about a year now I have had the problem of Safari (and now Google Chrome) not responding to typing, click, and scrolling. I first noticed the problem when a page in Safari would not scroll. I discovered that if I click off of Safari to the desktop or to another application and then click back on Safari, the scrolling would was working again. Then after another click or two the scrolling would stop. The same behavior happens when typing into fields on a web page. I can be typing my name but nothing appears in the field. If I click off of Safari and click back on again, the words I typed appear in the field. The same applies to buttons on the web page.
If I quit and restart Safari, the problem goes away temporarily, but within the next several hours the problem would return. For the longest time, I thought it was a problem with Safari, but I have been using Google Chrome lately, and the same behavior is now showing up in Chrome.
This is all on my Intel iMac.
iMac (24-inch), Mac OS X (10.7.5)