Hi
I faced same problem with the camera gesture and tried to find a solution for it. in the end I bought the HTC Dot View case and it work out.
Using the Dot View will allow m8 to use all gesture except the camera one which will not open until you open the flip.