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 |
||
---|---|---|
.. | ||
assets | ||
browser | ||
closure | ||
common | ||
extra | ||
jest | ||
node | ||
npm_package | ||
patch | ||
performance | ||
rxjs | ||
webdriver | ||
zone-spec | ||
BUILD.bazel | ||
browser-env-setup.ts | ||
browser-zone-setup.ts | ||
browser_entry_point.ts | ||
browser_es2015_entry_point.ts | ||
browser_shadydom_entry_point.ts | ||
browser_shadydom_setup.ts | ||
browser_symbol_setup.ts | ||
common_tests.ts | ||
fake_entry.js | ||
jasmine-patch.spec.ts | ||
karma_test.bzl | ||
main.ts | ||
mocha-patch.spec.ts | ||
node-env-setup.ts | ||
node_bluebird_entry_point.ts | ||
node_entry_point.ts | ||
node_entry_point_no_patch_clock.ts | ||
node_error_disable_policy_entry_point.ts | ||
node_error_entry_point.ts | ||
node_error_lazy_policy_entry_point.ts | ||
node_tests.ts | ||
saucelabs.js | ||
test-env-setup-jasmine-no-patch-clock.ts | ||
test-env-setup-jasmine.ts | ||
test-env-setup-mocha.ts | ||
test-util.ts | ||
test_fake_polyfill.ts | ||
ws-client.js | ||
ws-server.js | ||
ws-webworker-context.ts | ||
wtf_mock.ts | ||
zone_worker_entry_point.ts |