f9d483e76e
Now Angular doesn't support add event listeners as passive very easily. User needs to use `elem.addEventListener('scroll', listener, {passive: true});` or implements their own EventManagerPlugin to do that. Angular may finally support new template syntax to support passive event, for now, this commit introduces a temp solution to allow user to define the passive event names in zone.js configurations. User can define a global varibale like this. ``` (window as any)['__zone_symbol__PASSIVE_EVENTS'] = ['scroll']; ``` to let all `scroll` event listeners passive. PR Close #34503 |
||
---|---|---|
.. | ||
FileReader.spec.ts | ||
HTMLImports.spec.ts | ||
MediaQuery.spec.ts | ||
MutationObserver.spec.ts | ||
Notification.spec.ts | ||
WebSocket.spec.ts | ||
Worker.spec.ts | ||
XMLHttpRequest.spec.ts | ||
browser.spec.ts | ||
custom-element.spec.js | ||
define-property.spec.ts | ||
element.spec.ts | ||
geolocation.spec.manual.ts | ||
registerElement.spec.ts | ||
requestAnimationFrame.spec.ts | ||
shadydom.spec.ts |