Added option to end editing when scrolling starts