A malfunctioning touchpad can arise from various issues, including software glitches, hardware problems, outdated drivers ... and gently wipe the touchpad's surface with a microfiber cloth.
These solution will apply to a Microsoft Surface device too ... you have installed the latest Windows updates, firmware, and drivers. You can do so via Control Panel > Windows Update.