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

Trouble shoing a view at touch point

$
0
0

I am going to show a view on the touch point. But the view appears away from touch position.

One thing suspicious is that this is working properly on my android tablet but not on android phone. I think there must be a translation between touch position and view position.

front_view.addEventListener('longpress', function(e) {
    tmp_item.text = table2.data[0].rows[index].title;
    tmp_item.width = 250;
    tmp_item.center = {
            x : e.x,
            y : e.y
        };
});

This is my code. Please help me.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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