fix cases where touchend does not fire and breaks pointermap state