@@ -47,10 +47,7 @@ import {IS_EVENT_HANDLE_NON_MANAGED_NODE} from '../EventSystemFlags';
47
47
import getEventCharCode from '../getEventCharCode' ;
48
48
import { IS_CAPTURE_PHASE } from '../EventSystemFlags' ;
49
49
50
- import {
51
- enableCreateEventHandleAPI ,
52
- disableOnScrollBubbling ,
53
- } from 'shared/ReactFeatureFlags' ;
50
+ import { enableCreateEventHandleAPI } from 'shared/ReactFeatureFlags' ;
54
51
55
52
function extractEvents (
56
53
dispatchQueue : DispatchQueue ,
@@ -177,15 +174,13 @@ function extractEvents(
177
174
// In the past, React has always bubbled them, but this can be surprising.
178
175
// We're going to try aligning closer to the browser behavior by not bubbling
179
176
// them in React either. We'll start by not bubbling onScroll, and then expand.
180
- let accumulateTargetOnly = false ;
181
- if ( disableOnScrollBubbling ) {
182
- accumulateTargetOnly =
183
- ! inCapturePhase &&
184
- // TODO: ideally, we'd eventually add all events from
185
- // nonDelegatedEvents list in DOMPluginEventSystem.
186
- // Then we can remove this special list.
187
- domEventName === 'scroll' ;
188
- }
177
+ const accumulateTargetOnly =
178
+ ! inCapturePhase &&
179
+ // TODO: ideally, we'd eventually add all events from
180
+ // nonDelegatedEvents list in DOMPluginEventSystem.
181
+ // Then we can remove this special list.
182
+ // This is a breaking change that can wait until React 18.
183
+ domEventName === 'scroll' ;
189
184
190
185
accumulateSinglePhaseListeners (
191
186
targetInst ,
0 commit comments