Skip to content

E206 - snap_positions value out of range

Cause

A snap_positions: entry lies outside [0, scroll_range] (or is negative when scroll_range: "auto"). Snap positions are scroll offsets the scrollbar will lock onto, so they must be reachable.

Example

{ title: "T", elements: [...], scroll_range: 100, snap_positions: [50, 200] }

How to fix

Constrain each snap position to [0, scroll_range]. For "auto" slides, all positions must be >= 0; the upper bound is unbounded since the slide's height is content-driven.