refactor(playground): update gestures playground to use latest hammer.js
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -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]})
|
||||
|
Reference in New Issue
Block a user