【问题标题】:Nativescript ButtonDown eventNativescript ButtonDown 事件
【发布时间】:2018-12-04 16:11:08
【问题描述】:

我正在使用 Angular 2+ 和 Nativescript 5 开发一个应用程序。在普通按钮中,我通过点击事件收听“点击”:

<Button text="Tap me" (tap)="onTap($event)"></Button>

但是点击事件是在手指松开按钮后触发的。

现在我想在手指触摸按钮时监听“ButtonDown”事件。但我在文档中找不到该事件!

在这种情况下是否有任何解决方法?

【问题讨论】:

    标签: nativescript angular2-nativescript


    【解决方案1】:

    您可能必须侦听touch 事件并确保操作是down

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多