Add pointer-events check