Restore the original scroll position if the user cancels the operation.