c# - About mouse move event in WP7 Phonegap -


i trying create application phonegap windows phone 7.1. there no touch event supported in ie9 mobile (browser in wp7.1). mouse events have use instead. fine till have click button, or link. if have use plugins phonegap scroll or slider or drag , drop elements, doesn't work. found mousedown , mousemove events call @ same time.

i have downloaded thumbs.js https://issues.apache.org/jira/browse/cb-112

but didn't help.

i have tried :

function onbodyload() {      document.getelementbyid('divtest').attachevent('onmousemove', mouseeventmove);             }  function mouseeventmove(e) {      document.getelementbyid('divtest').innerhtml = e.clientx + " & " + e.clienty; } 

but mouseeventmove() called after combination of mousedown , mouseup, i.e. click. after adding thumbs.js , replacing onbodyload()

function onbodyload() {          document.getelementbyid('divtest').attachevent('ontouchmove', mouseeventmove);                 } 

now support touch event again mouseeventmove() called on click.

why ? should let wp7.1 support touch events or @ least mouse move event.

thanks in advance

jesse macfayden, adobe developer on phonegap team, has created little utility class can used emulate touch events on wp7:

https://github.com/apache/incubator-cordova-wp7/blob/master/templates/standalone/cordovalib/browsermousehelper.cs

you can see in action here:

http://phonegap.com/2012/05/22/windows-phone-apache-cordovaphonegap-hackathon/


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -