Pushing the button makes the sunroof open tilting up.
Pushing towards the front end of the car closes the sunroof.
Pulling towards the back of the car opens the sunroof completely.
The last one I explained seems like your not doing that.
¹ Photographer ² Bay Area Coder ³ Curb Rash Repairist