The title pretty much sums up my question. The reason is, I'm building an Ember app in PhoneGap, and there is a very slight delay on each click event. The touchStart event is more recommended. I would prefer to be able to define a separate helper (touch-to) for this if possible, or add a class to the link that will use the touch event instead.
Asked
Active
Viewed 362 times
1 Answers
4
You can change the event that LinkView uses (http://emberjs.com/api/classes/Ember.LinkView.html#property_eventName):
Ember.LinkView.reopen({
eventName: 'touchStart'
});

Steve H.
- 6,912
- 2
- 30
- 49
-
1Seems to work! Clicking on nav items is instant now, before it had about a 300ms delay. – Jared Jul 04 '14 at 01:35