Recalibrate the screen if you feel that the screen orientation does not respond properly to the way you hold
Go to Settings, and then tap
Display, gestures & buttons (or Display & buttons).
HTC One on a flat and level surface, and then tap
After the recalibration process, tap