fix pointer-events
adjust margin and focus computation