File tree 2 files changed +20
-1
lines changed
packages/platform-browser/src/dom/events
tools/public_api_guard/platform-browser
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,17 @@ export class HammerGestureConfig {
72
72
73
73
overrides : { [ key : string ] : Object } = { } ;
74
74
75
+ options ?: {
76
+ cssProps ?: any ; domEvents ?: boolean ; enable ?: boolean | ( ( manager : any ) => boolean ) ;
77
+ preset ?: any [ ] ;
78
+ touchAction ?: string ;
79
+ recognizers ?: any [ ] ;
80
+ inputClass ?: any ;
81
+ inputTarget ?: EventTarget ;
82
+ } ;
83
+
75
84
buildHammer ( element : HTMLElement ) : HammerInstance {
76
- const mc = new Hammer ( element ) ;
85
+ const mc = new Hammer ( element , this . options ) ;
77
86
78
87
mc . get ( 'pinch' ) . set ( { enable : true } ) ;
79
88
mc . get ( 'rotate' ) . set ( { enable : true } ) ;
Original file line number Diff line number Diff line change @@ -53,6 +53,16 @@ export declare const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
53
53
/** @experimental */
54
54
export declare class HammerGestureConfig {
55
55
events : string [ ] ;
56
+ options ?: {
57
+ cssProps ?: any ;
58
+ domEvents ?: boolean ;
59
+ enable ?: boolean | ( ( manager : any ) => boolean ) ;
60
+ preset ?: any [ ] ;
61
+ touchAction ?: string ;
62
+ recognizers ?: any [ ] ;
63
+ inputClass ?: any ;
64
+ inputTarget ?: EventTarget ;
65
+ } ;
56
66
overrides : {
57
67
[ key : string ] : Object ;
58
68
} ;
You can’t perform that action at this time.
0 commit comments