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 9469b4f commit 66afe34Copy full SHA for 66afe34
src/gestures/gesture.ts
@@ -38,7 +38,7 @@ export class Gesture {
38
39
on(type: string, cb: Function) {
40
if (type === 'pinch' || type === 'rotate') {
41
- this._hammer.get('pinch').set({enable: true});
+ this._hammer.get(type).set({enable: true});
42
}
43
this._hammer.on(type, cb);
44
(this._callbacks[type] || (this._callbacks[type] = [])).push(cb);
0 commit comments