摘要: 在krpano上看到一段关于手触响应的代码 1 function imagebar_onTouchStart(a) { 2 a.preventDefault(); 3 imagebar_touch_x = a.changedTouches[0].pageX; 4 imagebar_touch_y = a.changedTouches[0].pageY 5 } 6 function imagebar_onTouchMove(a) { 7 a.preventDefault() 8 } 9 function imagebar_onTouchEnd(a) {10 ... 阅读全文
posted @ 2011-12-09 11:17 z s k 阅读(254) 评论(0) 推荐(0) 编辑