Skip to content

Commit

Permalink
Fix scroll check in ConsolePanel
Browse files Browse the repository at this point in the history
  • Loading branch information
nighca committed Feb 14, 2025
1 parent 831ed56 commit cf54938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spx-gui/src/components/editor/panels/ConsolePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let isScrolledToBottom = true
const handleScroll = throttle((e: Event) => {
const el = e.target as HTMLElement
isScrolledToBottom = el.scrollHeight - el.scrollTop === el.clientHeight
isScrolledToBottom = el.scrollHeight < el.scrollTop + el.clientHeight + 1
}, 50)
function handleOutput(outputEl: unknown, i: number) {
Expand Down

0 comments on commit cf54938

Please sign in to comment.