Add support for onScrollEnd event (#26789)

## Summary

This adds support for the new
[scrollend](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollend_event)
event. It was recently added to the spec, and is currently supported in
Firefox 109 and Chrome Canary (shipping in Chrome 114). You can read
more about this event
[here](https://developer.chrome.com/blog/scrollend-a-new-javascript-event/).
This PR adds support for the `onScrollEnd` prop, following the
implementation for `onScroll`.

## How did you test this change?

Added unit tests.

DiffTrain build for commit https://github.com/facebook/react/commit/537228f9fd703d18bea1f6d20fa0e5006b795c42.
This commit is contained in:
sophiebits
2023-10-11 04:05:59 +00:00
parent 7717799110
commit 35acb5826f
7 changed files with 9 additions and 9 deletions
@@ -24780,7 +24780,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-be67db46b-20231010";
var ReactVersion = "18.3.0-canary-537228f9f-20231010";
// Might add PROFILE later.
@@ -8979,7 +8979,7 @@ var devToolsConfig$jscomp$inline_1008 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-be67db46b-20231010",
version: "18.3.0-canary-537228f9f-20231010",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1201 = {
@@ -9010,7 +9010,7 @@ var internals$jscomp$inline_1201 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-be67db46b-20231010"
reconcilerVersion: "18.3.0-canary-537228f9f-20231010"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1202 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9405,7 +9405,7 @@ var devToolsConfig$jscomp$inline_1050 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-be67db46b-20231010",
version: "18.3.0-canary-537228f9f-20231010",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1242 = {
@@ -9436,7 +9436,7 @@ var internals$jscomp$inline_1242 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-be67db46b-20231010"
reconcilerVersion: "18.3.0-canary-537228f9f-20231010"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1243 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-be67db46b-20231010";
var ReactVersion = "18.3.0-canary-537228f9f-20231010";
// ATTENTION
// When adding new symbols to this file,
@@ -616,4 +616,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-be67db46b-20231010";
exports.version = "18.3.0-canary-537228f9f-20231010";
@@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-be67db46b-20231010";
exports.version = "18.3.0-canary-537228f9f-20231010";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
be67db46b60d94f9fbefccf2523429af25873e5b
537228f9fd703d18bea1f6d20fa0e5006b795c42