MSGestureHold event not trigerred in Windows 8.1 -
MSGestureHold event not trigerred in Windows 8.1 -
my app uses silverlight 8.0 sdk, msgesturehold
event works on windows 8, if same tested on 8.1 event not triggered.
can suggest solution?
this code works fine in webview wphone 8.1 apps :
var init = function(){ var mystate = // context var target = // dom variable target var msg = new msgesture(); msg.target = target; target.addeventlistener("msgesturehold", function (evt) { buttontactilelistener.apply(mystate, [evt, msg]); }, false); target.addeventlistener("pointerdown", function (evt) { buttontactilelistener.apply(mystate, [evt, msg]); }, false); target.addeventlistener("msgestureend", function (evt) { buttontactilelistener.apply(mystate, [evt, msg]); }, false); } var buttontactilelistener = function (evt, msgesture) { var mystate = this; if (evt.type == "pointerdown") { msgesture.addpointer(evt.pointerid); return; } if (evt.type == "msgesturehold") { ///do return; } if (evt.type == "msgestureend") { // renew instance of handler msgesture = new msgesture(); msgesture.target = evt.target; return; } }
windows-phone-8
Comments
Post a Comment