fixed touchevent check