Skip to content

Commit

Permalink
feat: expose maxScrollPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed Mar 29, 2024
1 parent 9f20d9b commit 0f028ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/uikit/src/components/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export type ComponentInternals = {
borderInset: ReadonlySignal<Inset>
paddingInset: ReadonlySignal<Inset>
scrollPosition?: Signal<Vector2Tuple>
maxScrollPosition?: Signal<Partial<Vector2Tuple>>
interactionPanel: Mesh
}

Expand All @@ -45,6 +46,7 @@ export function useComponentInternals(
paddingInset: node.paddingInset,
pixelSize: node.pixelSize,
center: node.relativeCenter,
maxScrollPosition: node.maxScrollPosition,
size: node.size,
interactionPanel: interactionPanel instanceof Mesh ? interactionPanel : interactionPanel.current!,
scrollPosition,
Expand Down

0 comments on commit 0f028ce

Please sign in to comment.