In case you want to continue using libinput instead of synaptics (which is deprecated), you can try manually upgrading libinput which fixed the problem on my Dell Latitude E7240.
From the following links:
https://launchpad.net/ubuntu/+source/libinput
https://launchpad.net/ubuntu/+source/libwacom
https://launchpad.net/ubuntu/+source/xserver-xorg-input-libinput
I downloaded the following packages:
https://launchpad.net/ubuntu/+archive/primary/+files/libinput10_1.5.3-1ubuntu1_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libinput-bin_1.5.3-1ubuntu1_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libinput-dev_1.5.3-1ubuntu1_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libinput-tools_1.5.3-1ubuntu1_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libwacom2_0.22-1_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libwacom2-dbg_0.22-1_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libwacom-bin_0.22-1_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libwacom-common_0.22-1_all.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libwacom-dev_0.22-1_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/xserver-xorg-input-libinput_0.23.0-2_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/xserver-xorg-input-libinput-dev_0.23.0-2_all.deb
Once downloaded, open a terminal, change to the directory you downloaded them, and run:
sudo apt install ./*.deb
You'll then want to restart, and hopefully your problems will be fixed.