- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
if(touch){
// e.initUIEvent();
try{
var where=document.elementFromPoint(lastx,lasty);//Уфф...
//var t=obj_to_html(where);
//var t=obj_to_html(e.target.tagName||'no target');
//t+=obj_to_html(e.target.id||'no id');
//t+=obj_to_html(e.target.className||'no class');
// var t='';//=obj_to_html('no offsetXY');
//t+=obj_to_html(e.screenX||'no sX');
//t+=obj_to_html(e.screenY||'no sY');
// var touch = e.targetTouches[0];
// Place element where the finger is
// t+=obj_to_html(lastx||'no lastX');
// t+=obj_to_html(lasty||'no lastY');
//t+=obj_to_html(event.changedTouches[event.changedTouches.length-1].target.id||'no e id');
//t+=obj_to_html(event.changedTouches[event.changedTouches.length-1].target.tagName||'no e tag');
// t+=obj_to_html(event.changedTouches[event.changedTouches.length-1].target.className||'no e class');
// t+=obj_to_html(e.which.tagName||'el from offsetXY have no tag');
// t+=obj_to_html(e.which.id||'el from offsetXY have no id');
// t+=obj_to_html(document.elementFromPoint(lastx,lasty).id||'el from offsetXY have no id');
//t+=obj_to_html(document.elementFromPoint(lastx,lasty).tagName||'el from offsetXY have no tag');
//t+=obj_to_html(e.targetTouches||'no TT');
//t+=obj_to_html(e.touches||'no TT');
// document.getElementById('debug').innerHTML+='Res:'+t;
// return;
// t+=obj_to_html(e.targetTouches||'no touches');
// node_log(t);
//obj_to_html(e)+obj_to_html(where);
}catch(err){
// var t=obj_to_html(err);
// document.getElementById('debug').innerHTML+='Error:'+t;//obj_to_html(e)+obj_to_html(where);
document.getElementById('debug').innerHTML+='Error:'+err.message;
// node_log(t);
//obj_to_html(e)+obj_to_html(where);
}
//return;
// e = fixEvent(e);
// http://192.168.56.1:3000
//var where=e.target;//document.elementFromPoint(e.clientX,e.clientY);
}else{
e = fixEvent(e);
var where=document.elementFromPoint(e.clientX,e.clientY);
}
// document.getElementById('debug').innerHTML=obj_to_html(e)+obj_to_html(where);
Комментарии (0) RSS
Добавить комментарий