Here is a read on configuring Libinput: https://wiki.archlinux.org/title/libinput
You can probably do a catchall on all touchpads if thats your preferred method scrolling method
The option you want to put into your libinput touchpad config is: Option "ScrollMethod" "edge"