Could be a dying mouse, but from what you're saying, it sounds more like a software problem. I'd imagine it's a messed up mouse driver.