fix pointer events.