2017-09-25 118 views
2

我無法在Ionic 3中找到關於Pan事件的任何文檔,或者他們是否來自Cordova或Angular 4?Ionic 3 - Pan Events

<div class="swipper" #swipper (panleft)="swipe($event)" (panright)="swipe($event)" (panend)="swipe($event) " (panup)="swipe($event) " (pandown)="swipe($event) "> 

的panup和pandown事件不會被解僱所有的時間一般很很棘手,甚至馬車(測試在Chrome和iOS的模擬器)。因此,作爲一種解決方案,我正在考慮使用touchstart touchend事件,這需要重寫,但首先我想更多地瞭解泛事件。

回答

0

它在那裏。在這裏你可以看到the doc

基本手勢可以通過綁定到水龍頭,按, 平移,滑動,旋轉和捏事件從HTML訪問。

official code base樣品:

<ion-card (pan)="panEvent($event)"> 
<ion-item> 
    Panned: {{pan}} times 
</ion-item>