Spaces:
Runtime error
Runtime error
Implemented message deletion without scrolling and removed unnecessary scroll-to-bottom logic.
Browse files35 unmodified lines3637383940414278 unmodified lines12112212312312412512612712412512635 unmodified lines
function deleteMessage(i: number) { messages = messages.filter((_, j) => j !== i); // Don't scroll after deleting a message }
function reset() {78 unmodified lines } }
$: { if (messages) { scrollToBottom(); } }</script>
<svelte:window on:keydown={onKeydown} />src/lib/components/Playground/Playground.svelte+1-5