Changed the pointer event