fixed edit scroll so that it doesnt move when clicking with mouse when window is not in focus and caret is not in view