Only adjust scrollTop when deleting lines when using the React editor