angular-docs-cn/packages/zone.js/test/browser
JiaLiPassion f9d483e76e feat: add a temp solution to support passive event listeners. (#34503)
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
2020-02-24 17:30:04 -08:00
..
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 feat: add a temp solution to support passive event listeners. (#34503) 2020-02-24 17:30:04 -08:00
custom-element.spec.js
define-property.spec.ts fix(zone.js): move property patch to legacy (#31660) 2019-07-24 14:36:43 -07:00
element.spec.ts
geolocation.spec.manual.ts
registerElement.spec.ts
requestAnimationFrame.spec.ts
shadydom.spec.ts fix(zone.js): patch shadydom (#31717) 2019-07-24 14:42:14 -07:00