Skip to content

Enable scrolling

Make the checkout scroll to the selected payment or shipping option.

enableScrolling()

Makes the checkout scroll to the selected payment or shipping option after the customer chooses one in the expanded list. Scrolling is off by default.

Arguments

ParameterTypeDescriptionRequired
enableBooleanA flag saying if scrolling should be enabled or not. Defaults to true.required

Implementation example

q1.enableScrolling()