First, take note of if this only happens in certain applications or not. If so, then the programs themselves may be the issue. If it only happens with the browser, certain websites may be interfering.
Also, you might want to check for updates to your drivers, for example, driver (if your device uses one).
Next try starting up the laptop in”Safe Mode” and see if it happens in there. If it works fine in there, then it isn’t hardware.
The way to enter”Safe Mode” when booting the computer.
In Windows 8 and 10
As your computer restarts, press F8 (maybe a few times) to input”Safe Mode”
A. Press the”F4″ key to Empower”Safe Mode”.
(The computer will then start in”Safe Mode” with a minimum set of drivers and solutions.)
B. Press the”F5″ key to Enable”Safe Mode” with Networking.
( Once”Safe Mode” with Networking begins, Windows is in Safe Mode, with additional network and services for accessing the Internet and other computers on your network.)
C. Press the”F6″ key to Empower”Safe Mode” with Command Prompt.
(In”Safe Mode” with”Command Prompt” starts Windows in Safe Mode, with a Command Prompt window instead of the Windows interface. This option is mostly only used by IT professionals.)
Now sign into the computer with your account name and password. (If you have one set.) When you’re finished troubleshooting, you can exit”Safe Mode” restarting your computer.
In Windows 7/Vista/XP…
1. Immediately after turning on the computer, or restarting it (usually after you listen to your computer beep), tap the F8 key, repeatedly, in 1 second intervals.
2. The computer will then display hardware information and run a memory test.
3. Next the “Advanced Boot Options” menu will appear.
4. In the”Advanced Boot Options” menu use the arrow keys to select”Safe Mode” or”Safe Mode with Networking” and press ENTER.
If this does not help, and an external mouse works fine, then it might well be a hardware issue.