Skip to main content
Version: 1.x

@microsoft/fast-foundation > HorizontalScroll > scrollToPosition

HorizontalScroll.scrollToPosition() method

Handles scrolling with easing

Signature:
scrollToPosition(newPosition: number, position?: number): void;

Parameters

ParameterTypeDescription
newPositionnumberposition to scroll to
positionnumberstarting position
Returns:

void