Event API: use capture for all event listeners using experimental responder system (#15526)

This commit is contained in:
Dominic Gannaway
2019-04-30 11:40:45 +01:00
committed by GitHub
parent 72ca3c60e7
commit bd88982fbf
12 changed files with 38 additions and 68 deletions
+6
View File
@@ -39,5 +39,11 @@ declare module 'EventListener' {
options?: {passive: boolean},
) => mixed,
capture: (target: Element, type: string, callback: Function) => mixed,
captureWithPassiveFlag: (
target: Element,
type: string,
callback: Function,
passive: boolean,
) => mixed,
};
}