.....In some cases it may be dirt or moisture on the trackball/trackpad IC, in which case just clean with alcohol & a clean toothbrush. If that doesnt help then the IC or the trackball/trackpad may need to be replaced.
I hope this helps some of you with a bit of DIY skills