{ // disable automatic scrolling is user initiates scroll if (!isProgrammaticScroll) { shouldScrollToBottom = false; } isProgrammaticScroll = false; }} > {#if !viewCode} {#each conversation.messages as _msg, idx} deleteMessage(idx)} /> {/each} {:else} {/if}