From d584fcdc6e10b9f4d4e9eec775731e7ffc0fb501 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 19 Apr 2019 13:09:03 -0700 Subject: [PATCH] React events: use passive events where possible (#15454) --- packages/react-events/src/Press.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/react-events/src/Press.js b/packages/react-events/src/Press.js index b2a4ff853f9b3..457d92e0840ed 100644 --- a/packages/react-events/src/Press.js +++ b/packages/react-events/src/Press.js @@ -99,12 +99,7 @@ const targetEventTypes = [ 'pointerdown', 'pointercancel', ]; -const rootEventTypes = [ - {name: 'keyup', passive: false}, - {name: 'pointerup', passive: false}, - 'pointermove', - 'scroll', -]; +const rootEventTypes = ['keyup', 'pointerup', 'pointermove', 'scroll']; // If PointerEvents is not supported (e.g., Safari), also listen to touch and mouse events. if (typeof window !== 'undefined' && window.PointerEvent === undefined) {