[#364] fixed pointer event detection