ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
192 stars 187 forks source link

Ionic gestures doesn’t work on ion-tab #275

Open vahidvdn opened 7 years ago

vahidvdn commented 7 years ago

I want to use on-double-tap in ion-tab element. But doesn't work. Here is codepen.

I even tested with $ionicGesture event listeners:

var el = angular.element(document.querySelector('#first_tab'));
var callback = function(e) {
      console.log('gestureee!');
};
// tested : hold, tap, doubletap
$ionicGesture.on('hold', callback, el);

html:

<ion-tab id="first_tab" icon="icon-tab-margin tab-icon-size ion-android-home" href="#/tab/dash">
    <ion-nav-view name="tab-dash"></ion-nav-view>
</ion-tab>

Both of them works fine into the each tab's content or other states.