gabek, This probably isn't possible but I thought I'd throw it out there.
I just happen to have installed #Ubuntu from scratch and used #Gnome. And I have no interest in using Gnome for anything, I don't like it. BUT, the trackpad handling is excellent! Gestures, and the scrolling, it's great. I can't seem to find a way to pull whatever handles the mouse handling out of Gnome and use it within my own #Linux Window manager. I probably don't understand the layers of Gnome, and that's fine. But I sure wish I could have just that functionality. For years, I've had janky trackpad handling on Linux because I thought it was as good as it could get.