If your cursor has a mind of its own or your trackpad clicks just aren't registering properly, replacing the trackpad should do the trick. This sort of damage is typically caused by liquid spills as the keyboard and trackpad are the first layers of any laptop.

Devices

iPhone

iPad

Mac

Samsung