Fixed edge gestures when screen was rotated