check eraser only when the pointer is pen