123456789101112131415161718192021 |
- import { Injectable } from '@angular/core';
- import { HammerGestureConfig } from '@angular/platform-browser';
- /**
- * @hidden
- * This class overrides the default Angular gesture config.
- */
- export class IonicGestureConfig extends HammerGestureConfig {
- buildHammer(element) {
- const mc = new window.Hammer(element);
- for (let eventName in this.overrides) {
- mc.get(eventName).set(this.overrides[eventName]);
- }
- return mc;
- }
- }
- IonicGestureConfig.decorators = [
- { type: Injectable },
- ];
- /** @nocollapse */
- IonicGestureConfig.ctorParameters = () => [];
- //# sourceMappingURL=gesture-config.js.map
|