Touchpad is behaving weirdly

Hello,
I bought a new laptop a few weeks back. It was working great at the start now the touchpad has started behaving weirdly. When i click on it it is supposed to be registered as a left click. But it registers it as right or middle click. Like it cycles through every button on the touchpad. So sometimes when i click it pastes stuff randomly, closes stuff. It’s annoying. And also it starts happening randomly and gets fixed randomly.
Below is a log from libinput-debug when I left clicked i.e pressed/tapped on the touchpad

-event5   POINTER_BUTTON          +0.026s	BTN_LEFT (272) pressed, seat count: 1
 event5   POINTER_MOTION          +0.053s	  0.00/ 10.93 ( +0.00/+14.00)
 event5   POINTER_MOTION          +0.061s	  0.00/  0.88 ( +0.00/ +1.00)
 event5   POINTER_MOTION          +0.068s	 -0.88/  0.00 ( -1.00/ +0.00)
 event5   POINTER_MOTION          +0.138s	 -0.80/  0.00 ( -1.00/ +0.00)
 event5   POINTER_MOTION          +0.174s	 -4.00/  0.00 ( -5.00/ +0.00)
 event5   POINTER_BUTTON          +0.195s	BTN_LEFT (272) released, seat count: 0
event5  - SYNA0001:00 06CB:CE78 Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.24.0/touchpad-jumping-cursors.html for details
 event5   GESTURE_PINCH_BEGIN     +0.277s	3
 event5   GESTURE_PINCH_UPDATE    +0.277s	3  9.23/13.85 ( 8.79/13.18 unaccelerated)  1.05 @ -1.75
 event5   GESTURE_PINCH_UPDATE    +0.285s	3  0.45/ 0.00 ( 0.44/ 0.00 unaccelerated)  1.05 @  0.09
 event5   GESTURE_PINCH_UPDATE    +0.293s	3  0.00/-0.39 ( 0.00/-0.44 unaccelerated)  1.05 @ -0.00
 event5   GESTURE_PINCH_UPDATE    +0.302s	3 -7.69/-16.28 (-7.47/-15.82 unaccelerated)  0.99 @  1.47
 event5   GESTURE_PINCH_END       +0.326s	3
 event5   POINTER_BUTTON          +0.649s	BTN_MIDDLE (274) pressed, seat count: 1
 event5   POINTER_BUTTON          +0.665s	BTN_MIDDLE (274) released, seat count: 0
 event5   POINTER_BUTTON          +0.682s	BTN_MIDDLE (274) pressed, seat count: 1
 event5   POINTER_BUTTON          +0.705s	BTN_MIDDLE (274) released, seat count: 0
 event5   POINTER_BUTTON          +0.728s	BTN_MIDDLE (274) pressed, seat count: 1
 event5   POINTER_BUTTON          +0.744s	BTN_MIDDLE (274) released, seat count: 0
 event5   GESTURE_HOLD_BEGIN      +1.026s	3
 event5   GESTURE_HOLD_END        +1.086s	3

The cursor jumps as well when i try to move it.
Touchpad info:

Device:           SYNA0001:00 06CB:CE78 Touchpad
Kernel:           /dev/input/event5
Group:            7
Seat:             seat0, default
Size:             117x72mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Disable-w-trackpointing: enabled
Accel profiles:   flat *adaptive custom
Rotation:         n/a

This sounds very much like what happened when I spilled hot tea onto my touchpad. It went away once everything was completely dried out.

If you have not spilled anything on your toichpad, perhaps you should suspect that the hardware is getting a bit dodgy.

Could it be because of static electricity?

Could it be because of static electricity?

I don’t think so, the technology is not so sensitive to it. I’ve used touchpads on laptops while the laptop was sitting on a bin of plastic pellets, and no problem, all while personally getting frequent large static shocks. The computer was fine, and I was OK after I got the machine working.

Are you using wayland or Xorg? Did the weird behaviour start after a software update? Does it occur if you boot with a Live Linux USB key?

Check the web for similar problem reports with your hardware (laptop model and specific touchpad model). I found Issues with same touchpad in arch linux has some troubleshooting examples. Looks like this model is a “soft button clickpad”.

Contact the vendor – sometimes they will know about a bad “batch” of touchpads and offer a replacement.

In the meantime, you can try disabling tapping with libinput.

How often does the “touch jump” event occur? This might be a false detection related to the touchpad zones, which should be configurable. For Xorg, Editing Lenovo touchpad zones in Linux.. For wayland,
Clickpad Soft Buttons is several years old, so more work is needed to find current status for soft buttons.

I am currently using wayland but it happens in X11 as well. I update frequently so it might be because of a update but no idea about the exact update. I will have to try it on a live environment.
I tried installing hyprland to see if its a gnome specific issue but it was happening there as well