I was trying to add MSGesture Event to my listview to track the finger swipe on the listview.
Below is the code I used to create the listview.
var elem = document.createElement('div');
elem.id = 'mylist';
var lv = new WinJS.UI.ListView(elem, { });
Then I tried the following code to hook up the event handler
var list = document.getElementById("mylist");
list .addEventListener("MSGestureEnd", eventhandler, false);
var myGesture = new MSGesture();
myGesture .target = list ;
However the event never got fired.
Any idea how to make this working?
Thanks a lot!