标题几乎概括了我的问题。原因是,我正在PhoneGap中构建Ember应用程序,并且每次单击事件都有非常小的延迟。推荐使用touchStart事件。如果可能的话,我希望能够为此定义一个单独的帮助程序(touch-to),或者将一个类添加到将使用touch事件的链接中。
您可以更改LinkView使用的事件(http://emberjs.com/api/classes/Ember.LinkView.html#property_eventName):
Ember.LinkView.reopen({
eventName: 'touchStart'
});
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句