# Pinch Gesture is not working

**URL:** <https://forum.ionicframework.com/t/pinch-gesture-is-not-working/69564>\
**Category:** ionic-v3\
**Created:** [November 8, 2016, 2:36pm UTC](https://forum.ionicframework.com/t/pinch-gesture-is-not-working/69564 "2016-11-08T14:36:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bdmshezar](https://avatars.discourse-cdn.com/v4/letter/b/898d66/32.png) [@bdmshezar](https://forum.ionicframework.com/u/bdmshezar)\
**Post date:** [August 23, 2017, 10:45am UTC](https://forum.ionicframework.com/t/pinch-gesture-is-not-working/69564/4 "2017-08-23T10:45:03Z")

</div>

hi guys,  
its working code of ionic3 and angular 4,

import { Component, ViewChild,ElementRef } from ‘@angular/core’;  
import { Gesture } from ‘ionic-angular’;

…

export class Toto {  
constructor(private el:ElementRef){

}  
…

```
private gesture: Gesture;
@ViewChild('image') ElementRef ;

...

ionViewDidLoad() {
//create gesture obj w/ ref to DOM element
this.gesture = new Gesture(this. el.nativeElement);

//listen for the gesture
this.gesture.listen();

//turn on listening for pinch or rotate events
this.gesture.on('pinch', e => this.pinchEvent(e));
}

private pinchEvent(event) {
    console.log(event);
}

...

```

}

let cheers

---

_[View the full topic](https://forum.ionicframework.com/t/pinch-gesture-is-not-working/69564)._
