pointer-events: refactoring