Skip to content

Commit

Permalink
Flip event passive logic on passiveBrowserEventsSupported (#15190)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Mar 22, 2019
1 parent f161ee2 commit 78f2775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-dom/src/events/ReactDOMEventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ export function trapEventForResponderEventSystem(
// and can provide polyfills if needed.
if (passive) {
if (passiveBrowserEventsSupported) {
eventFlags |= IS_PASSIVE;
} else {
eventFlags |= IS_ACTIVE;
eventFlags |= PASSIVE_NOT_SUPPORTED;
passive = false;
} else {
eventFlags |= IS_PASSIVE;
}
} else {
eventFlags |= IS_ACTIVE;
Expand Down

0 comments on commit 78f2775

Please sign in to comment.