Skip to content

Commit

Permalink
fix(gesture): pass type to hammer.get() so pinch and rotate can be en…
Browse files Browse the repository at this point in the history
…abled
  • Loading branch information
amuramoto committed Nov 17, 2016
1 parent 9469b4f commit 66afe34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gestures/gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Gesture {

on(type: string, cb: Function) {
if (type === 'pinch' || type === 'rotate') {
this._hammer.get('pinch').set({enable: true});
this._hammer.get(type).set({enable: true});
}
this._hammer.on(type, cb);
(this._callbacks[type] || (this._callbacks[type] = [])).push(cb);
Expand Down

0 comments on commit 66afe34

Please sign in to comment.