Prevent focus change due to pointer jitter