{#if dragAndDrop.isDragOver} {/if} { scroll.handleScroll(e); handleMobileScroll(); if (e.isTrusted && Date.now() > mobileScrollDownHintLockedUntil) { mobileScrollDownHint = false; } }} /> {#if isServerLoading} {:else} {#if !isEmpty} { handleSendLikeScroll(); }} /> {/if} {#if page.params.id} {/if} {#if (deviceStore.isMobile ? mobileScrollDownHint || isMobileUserScrolledUp : autoScroll.userScrolledUp) && page.url.hash.includes(ROUTES.CHAT) && page.params.id} { mobileScrollDownHint = false; scroll.chatScrollContainer?.scrollTo({ behavior: 'smooth', top: scroll.chatScrollContainer.scrollHeight }); }} /> {/if} chatStore.stopGeneration()} onSystemPromptAdd={handleSystemPromptAdd} /> {/if}