gpt4 book ai didi

angular - Ionic 3 - Pan 事件

转载 作者:太空狗 更新时间:2023-10-29 18:30:34 26 4
gpt4 key购买 nike

我找不到任何关于 Ionic 3 中的 Pan 事件的文档,或者它们是否来自 Cordova 或 Angular 4?

<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 事件,这需要重写,但首先我想了解更多关于平移事件的信息。

最佳答案

它就在那里。在这里你可以看到the doc .

Basic gestures can be accessed from HTML by binding to tap, press, pan, swipe, rotate, and pinch events.

样本来自 official code base :

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

关于angular - Ionic 3 - Pan 事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46414261/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com