We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 041fbf1 commit adba735Copy full SHA for adba735
src/lib/core/gestures/gesture-config.ts
@@ -1,4 +1,4 @@
1
-import {Injectable} from '@angular/core';
+import {Injectable, isDevMode} from '@angular/core';
2
import {HammerGestureConfig} from '@angular/platform-browser';
3
4
/* Adjusts configuration of our gesture library, Hammer. */
@@ -19,7 +19,7 @@ export class GestureConfig extends HammerGestureConfig {
19
constructor() {
20
super();
21
22
- if (!this._hammer) {
+ if (!this._hammer && isDevMode()) {
23
console.warn('Could not find HammerJS. Certain Angular Material may not work correctly.');
24
}
25
0 commit comments