Fix PointerEvents handling