src/python/app/touchvisualization.py: Added fix for rotated apps