Fixed touchscreen active state and cursor issues