pointer-events: refactoring, update tests