# Interface WScrollOptions

interface WScrollOptions {
anchor?: null | HTMLElement;
endStep: number;
offset: number;
orient: "vertical" | "horizontal";
startPosition: number;
startStep: number;
syncSize: boolean;
viewport: number;
viewportSize: number;
onScrollX?(this, delta): void;
onScrollY?(this, delta): void;
}

#####
Index

### Properties

anchor?
endStep
offset
orient
startPosition
startStep
syncSize
viewport
viewportSize

### Methods

onScrollX?
onScrollY?

## Properties

### `Optional` anchor

anchor?: null | HTMLElement

### endStep

endStep: number

### offset

offset: number

### orient

orient: "vertical" | "horizontal"

### startPosition

startPosition: number

### startStep

startStep: number

### syncSize

syncSize: boolean

### viewport

viewport: number

### viewportSize

viewportSize: number

## Methods

### `Optional` onScrollX

- onScrollX(this, delta): void

- #### Parameters

  - ##### this: Widget<HTMLElement>

  - ##### delta: number

  #### Returns void

### `Optional` onScrollY

- onScrollY(this, delta): void

- #### Parameters

  - ##### this: Widget<HTMLElement>

  - ##### delta: number

  #### Returns void