Check the Trackpad settings in System Preferences. There are a lot of gestures. It sounds like you are doing a gesture without realizing it.
You can turn off all the gestures. Although I'd recommend learning them. Each gesture shows a little demo when your highlight them. Many are quite handy when you get the hang of them. They can make navigating the OS with a trackpad much more efficient.