Skip to content

Commit

Permalink
Fix component list scrolling (#10937)
Browse files Browse the repository at this point in the history
Fixes #10927
  • Loading branch information
vitvakatu authored Sep 2, 2024
1 parent 9e5773a commit 3a310dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/gui2/src/components/ComponentBrowser/ComponentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const scrollerSize = useResizeObserver(scroller)
const listContentHeight = computed(() =>
Math.max(components.value.length * ITEM_SIZE, scrollerSize.value.y),
)
const scrolling = useScrolling(() => animatedHighlightPosition.value)
const scrolling = useScrolling(() =>
Math.min(animatedHighlightPosition.value, listContentHeight.value - scrollerSize.value.y),
)
const listContentHeightPx = computed(() => `${listContentHeight.value}px`)
Expand Down

0 comments on commit 3a310dc

Please sign in to comment.