# defaultConnectedOverlayScrollStrategy Type documentation

## TypeScript declaration

### [defaultConnectedOverlayScrollStrategy](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L52-L54>)

**Kind:** function

```
import { defaultConnectedOverlayScrollStrategy } from '@siemens/element-ng/common';
```

Returns the configured connected-overlay scroll strategy or the CDK reposition fallback. Must be called in an Angular injection context.

```
ScrollStrategy
```

```
defaultConnectedOverlayScrollStrategy(): ScrollStrategy
```

Returns the configured connected-overlay scroll strategy or the CDK reposition fallback. Must be called in an Angular injection context.

**Returns:** [ScrollStrategy](<https://material.angular.dev/cdk/overlay/api#ScrollStrategy>)
