Added touch detection for Tooltip