Casual googling will bring you a quick fix, and you can see people talking about the same problem
here and
there.
If you don't want to read them, try the following terminal command:
defaults write -g com.apple.trackpad.scrollBehavior 2
and then reboot.
I hope it will solve the problem.