Avoid unnecessary text layouts during mouse selection.