This is due to the lib that manages touchpad changed from the old (deprecated) synaptics to libinput (which also manages keyboards and other input devices).
According to some research I did on the internet libinput is much better, but we have a problem: if we have libinput and synaptics both installed, the touchpad gets crazy.
So, the solution to that is to remove all packages that have synaptics on their names:
$ sudo pacman -Rd xf86-input-synaptics libsynaptics
This way, the touchpad will work as desired.
Also, to configure left and right click using the touchpad, you must configure them through “Gnome Tweak Tool”:
Keyboard and Mouse => Touchpad => Click Method => Fingers.
In that case, pressing: