2

So I started building a simple app in Ionic2 on Angular2. I ran into bugs quickly e.g. Angular2 uses Hammer.js for touch events handling, but it runs into an endless recursion because of a "typo". I found a comment on a github issue: https://github.com/angular/angular/issues/6993#issuecomment-187115690 so I could fix this manually.

The next thing I found that whenever I try to swipe or pan down or up it won't fire the event, it works when I try to fire the events horizontally but not vertically.

<ion-content (pan)="log($event)">...</ion-content>

My questions are:

Is it really the Ionic2 implementation which causes the problem? Is there a simple way to fix this? Where should I find the corresponding source codes to edit?

godzsa
  • 2,105
  • 4
  • 34
  • 56

1 Answers1

0

Hammer events are registered by Angular2 itself when the Hammer library is present. They can be used outside Ionic2.

Regarding code source codes, you could have a look at the following links:

See also this question:

Community
  • 1
  • 1
Thierry Templier
  • 198,364
  • 44
  • 396
  • 360
  • 1
    Yes I know this, but as I mentioned it will fire horizontally, I guess Ionic2 blocks this vertically somehow. I mean you did not answer my question – godzsa Mar 08 '16 at 12:14