diff --git a/core/src/components/segment/segment.tsx b/core/src/components/segment/segment.tsx index 08cdc3e3f2..4a83c2fa33 100644 --- a/core/src/components/segment/segment.tsx +++ b/core/src/components/segment/segment.tsx @@ -101,6 +101,15 @@ export class Segment implements ComponentInterface { activeButton.scrollIntoView({ behavior: 'smooth', inline: 'center', + + /** + * Segment should scroll on the + * horizontal axis. `block: 'nearest'` + * ensures that the vertical axis + * does not scroll if the segment + * as a whole is already in view. + */ + block: 'nearest', }); } }