The grid (rendering) ยท console.warn
scrollbars is '{x}' on x and '{y}' on y. Dra...
Printed by The grid (rendering), prefixed [lattice], since 1.62.0.
Warnings reference › scrollbars-mixed-custom
- Identifier
scrollbars-mixed-custom- Raised by
- The grid (rendering)
- Since
- 1.62.0
What happened
Grid-drawn scrollbars were asked for on one axis only. No browser offers per-axis control of native scrollbar visibility, so hiding one hides both: the axis left on 'auto' still scrolls, with no visible bar at all. A silently missing scrollbar is exactly the kind of thing found in production rather than in development.
The fix
Set scrollbars to 'custom' on both axes, or on neither.
The smallest fix
createGrid(el, { scrollbars: 'custom' });
Reference
Covered in full at the API reference.