Touchpad problem in x11

I have an issue with the touchpad on my HP laptop. When I press something, I can move it, but when I lift my finger off the touchpad, there is a delay in releasing it. What is the solution? This problem occurs only in X11.

try setting services.libinput.enable = true;

libinput is the default, so unless they manually switched to xf86-input-synaptics (services.xserver.synaptics.enable) that won’t change much.

Unfortunately I tried it and it didn’t work