Skip to content

Commit 62dcef0

Browse files
authored
ScrollView: add missing onScroll event properties (#4816)
1 parent e1c84f1 commit 62dcef0

File tree

6 files changed

+36
-12
lines changed

6 files changed

+36
-12
lines changed

docs/scrollview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Called when the momentum scroll ends (scroll which occurs as the ScrollView glid
440440

441441
### `onScroll`
442442

443-
Fires at most once per frame during scrolling. The event has the following shape (all values are numbers):
443+
Fires at most once per frame during scrolling. The event has the following shape (all values with unspecified type are numbers):
444444

445445
```js
446446
{
@@ -449,7 +449,11 @@ Fires at most once per frame during scrolling. The event has the following shape
449449
contentOffset: {x, y},
450450
contentSize: {height, width},
451451
layoutMeasurement: {height, width},
452-
zoomScale
452+
velocity: {x, y},
453+
responderIgnoreScroll: boolean,
454+
zoomScale,
455+
// iOS only
456+
targetContentOffset: {x, y}
453457
}
454458
}
455459
```

website/versioned_docs/version-0.77/scrollview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Called when the momentum scroll ends (scroll which occurs as the ScrollView glid
440440

441441
### `onScroll`
442442

443-
Fires at most once per frame during scrolling. The event has the following shape (all values are numbers):
443+
Fires at most once per frame during scrolling. The event has the following shape (all values with unspecified type are numbers):
444444

445445
```js
446446
{
@@ -449,7 +449,11 @@ Fires at most once per frame during scrolling. The event has the following shape
449449
contentOffset: {x, y},
450450
contentSize: {height, width},
451451
layoutMeasurement: {height, width},
452-
zoomScale
452+
velocity: {x, y},
453+
responderIgnoreScroll: boolean,
454+
zoomScale,
455+
// iOS only
456+
targetContentOffset: {x, y}
453457
}
454458
}
455459
```

website/versioned_docs/version-0.78/scrollview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Called when the momentum scroll ends (scroll which occurs as the ScrollView glid
440440

441441
### `onScroll`
442442

443-
Fires at most once per frame during scrolling. The event has the following shape (all values are numbers):
443+
Fires at most once per frame during scrolling. The event has the following shape (all values with unspecified type are numbers):
444444

445445
```js
446446
{
@@ -449,7 +449,11 @@ Fires at most once per frame during scrolling. The event has the following shape
449449
contentOffset: {x, y},
450450
contentSize: {height, width},
451451
layoutMeasurement: {height, width},
452-
zoomScale
452+
velocity: {x, y},
453+
responderIgnoreScroll: boolean,
454+
zoomScale,
455+
// iOS only
456+
targetContentOffset: {x, y}
453457
}
454458
}
455459
```

website/versioned_docs/version-0.79/scrollview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Called when the momentum scroll ends (scroll which occurs as the ScrollView glid
440440

441441
### `onScroll`
442442

443-
Fires at most once per frame during scrolling. The event has the following shape (all values are numbers):
443+
Fires at most once per frame during scrolling. The event has the following shape (all values with unspecified type are numbers):
444444

445445
```js
446446
{
@@ -449,7 +449,11 @@ Fires at most once per frame during scrolling. The event has the following shape
449449
contentOffset: {x, y},
450450
contentSize: {height, width},
451451
layoutMeasurement: {height, width},
452-
zoomScale
452+
velocity: {x, y},
453+
responderIgnoreScroll: boolean,
454+
zoomScale,
455+
// iOS only
456+
targetContentOffset: {x, y}
453457
}
454458
}
455459
```

website/versioned_docs/version-0.80/scrollview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Called when the momentum scroll ends (scroll which occurs as the ScrollView glid
440440

441441
### `onScroll`
442442

443-
Fires at most once per frame during scrolling. The event has the following shape (all values are numbers):
443+
Fires at most once per frame during scrolling. The event has the following shape (all values with unspecified type are numbers):
444444

445445
```js
446446
{
@@ -449,7 +449,11 @@ Fires at most once per frame during scrolling. The event has the following shape
449449
contentOffset: {x, y},
450450
contentSize: {height, width},
451451
layoutMeasurement: {height, width},
452-
zoomScale
452+
velocity: {x, y},
453+
responderIgnoreScroll: boolean,
454+
zoomScale,
455+
// iOS only
456+
targetContentOffset: {x, y}
453457
}
454458
}
455459
```

website/versioned_docs/version-0.81/scrollview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Called when the momentum scroll ends (scroll which occurs as the ScrollView glid
440440

441441
### `onScroll`
442442

443-
Fires at most once per frame during scrolling. The event has the following shape (all values are numbers):
443+
Fires at most once per frame during scrolling. The event has the following shape (all values with unspecified type are numbers):
444444

445445
```js
446446
{
@@ -449,7 +449,11 @@ Fires at most once per frame during scrolling. The event has the following shape
449449
contentOffset: {x, y},
450450
contentSize: {height, width},
451451
layoutMeasurement: {height, width},
452-
zoomScale
452+
velocity: {x, y},
453+
responderIgnoreScroll: boolean,
454+
zoomScale,
455+
// iOS only
456+
targetContentOffset: {x, y}
453457
}
454458
}
455459
```

0 commit comments

Comments
 (0)