Fix rotation issue with touchscreen