It's not cheating at all. Your girlfriend should be proud that you'd rather touch yourself, than be with any other woman.
Then again, some psycho controlling girlfriends think it is cheating. So you should probably check in with her if your relationship is "sexual" in nature. But from my...