I was having erratic cursor issues in my MacBook pro 2011 10.6.8
From time to time it was stabilized but becoming more and more apparent I had to find a fix.
The looming option where I live is to bring it to an authorized apple service center, or a guy good with Macs.
I tried disk utilities and repair disk permissions, everything was fine.
I cleaned the trackpad,which seemed to work only twice.
I the decided it was time to upgrade to Yosemite, which made the situation worse. It started to go between windows.
So before I brought MB in to be looked at. I decided I was going to go through this enduring process to delete my Safari history, which I proudly say are my dirty movie sites.
My primary browser, Firefox does not have these sites on it.
This is what fixed my issue!!! Deleting my Safari history.
I am so happy,I am writing this simple thing that worked for me.
I literally was going to delete,shut down,and bring it in for whatever they would say.
I hope this helps.