locked
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)

    Thursday, February 9, 2012 7:48 PM
    Moderator

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)

    Thursday, February 9, 2012 7:48 PM
    Moderator
  • 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!


    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 PM
    Moderator
  • 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 PM
    Moderator