Touchscreen s2w detection hook