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.