The problem is related to electrical interference from the power supply (see http://superuser.com/questions/76649/laptop-touchpad-works-incorrectly-when-on-power-supply). As suggested by users here, increasing the noise threshold helps.
In my case, this problem happens because I am using a cheap ebay power supply that was not manufactured by my laptop's maker.
The problem is related to electrical interference from the power supply (see http:// superuser. com/questions/ 76649/laptop- touchpad- works-incorrect ly-when- on-power- supply). As suggested by users here, increasing the noise threshold helps.
In my case, this problem happens because I am using a cheap ebay power supply that was not manufactured by my laptop's maker.