Answered by:
ListView Touch Double tap question?

Question
-
I create a listview in js, I use mouse double tap is regular, but I use touch double tap is no
response. why?
thanks!
Thursday, February 9, 2012 6:51 AM
Answers
-
You probably did not hook up the handler correctly:
Create a SplitView app from the template in VS. Add this after ProcessAll:
lv.addEventListener("MSGestureDoubleTap", gestureDoubleTapListener, false);
Put a breakpoint in your function that handles the DoubleTap and you will see that it gets hit.
-Jeff
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Thursday, February 9, 2012 7:48 PM
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Wednesday, February 15, 2012 1:18 PM
Thursday, February 9, 2012 7:48 PMModerator
All replies
-
You probably did not hook up the handler correctly:
Create a SplitView app from the template in VS. Add this after ProcessAll:
lv.addEventListener("MSGestureDoubleTap", gestureDoubleTapListener, false);
Put a breakpoint in your function that handles the DoubleTap and you will see that it gets hit.
-Jeff
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Thursday, February 9, 2012 7:48 PM
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Wednesday, February 15, 2012 1:18 PM
Thursday, February 9, 2012 7:48 PMModerator -
Create a Bank app from the template in VS. Is not it add MSGestureDoubleTap event for listview? if no, I will how to do?
thanks!
- Edited by hot_blood2001 Friday, February 10, 2012 3:10 AM
Friday, February 10, 2012 2:34 AM -
Hello Hot,
See my previous post. It tells you how to do this.
-Jeff
Jeff Sanders (MSFT)
Friday, February 10, 2012 1:07 PMModerator -
Also....
Compare your failed application to the sucessful case (splitview).
Look at the include files used and the fact that it does a ProcessAll() when the page is loaded. You should be able to quickly, see the differences and resolve the issue. If not, can you post your simplified HTML and JS files?
-Jeff
Jeff Sanders (MSFT)
Wednesday, February 15, 2012 4:33 PMModerator