I am making a web app for Tizen. I want to get the x,y coordinates of where the user presses, and then where they release. My code works fine in a browser, but when I run it on Tizen the mouse down function only fires when I release the click
$("#listener").mousedown(function(e) { mouseDown.x = e.offsetX; mouseDown.y = e.offsetY; $( "#game" ).css("background-color","#0F0"); }); $("#listener").mouseup(function(e) { mouseUp.x = e.offsetX; mouseUp.y = e.offsetY; $( "#game" ).css("background-color","#F00"); });
To make sure it wasn't just an issue with the coordinates I added the background colour change. On a browser the background will turn green while the listener is being clicked, however on Tizen there is no change until the click is released; then it will flicker green for a second and then back to red.