Fix non-linear scrolling in the diff view