Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Negative coordinates in a window

$
0
0

I have this code in my Android app:

$.MiVentana.addEventListener('touchmove', function(e){
    Ti.API.info('*** Estoy en touchmove:  **X:'+ e.x + ' **Y:' + e.y + ' **Ancho:' + screenWidth);  
 
});
The problem is coordinates e.x and e.y can be negatives. Why?? How i can know where i touch the screen?

Thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>