refactor(playground): update gestures playground to use latest hammer.js

This commit is contained in:
Joao Dias
2016-10-30 22:25:42 +01:00
committed by vsavkin
parent 5494169fb4
commit bad58824a0
6 changed files with 20 additions and 21 deletions

File diff suppressed because one or more lines are too long

View File

@ -16,13 +16,11 @@ class GesturesCmp {
pinchScale: number = 1;
rotateAngle: number = 0;
onSwipe(event: any /** TODO #9100 */): void {
this.swipeDirection = event.deltaX > 0 ? 'right' : 'left';
}
onSwipe(event: HammerInput): void { this.swipeDirection = event.deltaX > 0 ? 'right' : 'left'; }
onPinch(event: any /** TODO #9100 */): void { this.pinchScale = event.scale; }
onPinch(event: HammerInput): void { this.pinchScale = event.scale; }
onRotate(event: any /** TODO #9100 */): void { this.rotateAngle = event.rotation; }
onRotate(event: HammerInput): void { this.rotateAngle = event.rotation; }
}
@NgModule({declarations: [GesturesCmp], bootstrap: [GesturesCmp], imports: [BrowserModule]})