This commit is contained in:
libccy 2017-03-27 19:43:27 +08:00
parent 176d9da76b
commit d50326170f
1 changed files with 11 additions and 11 deletions

View File

@ -37191,17 +37191,17 @@
this.startX=e.touches[0].clientX/game.documentZoom;
this.startY=e.touches[0].clientY/game.documentZoom;
_status.dragged=false;
if(lib.device=='ios'){
var startY=e.touches[0].pageY;
var startTopScroll=this.scrollTop;
if(startTopScroll<=0){
this.scrollTop=1;
}
else if(startTopScroll&&startTopScroll+this.offsetHeight>=this.scrollHeight){
this.scrollTop=this.scrollHeight-this.offsetHeight-1;
}
}
// if(lib.device=='ios'){
// var startY=e.touches[0].pageY;
// var startTopScroll=this.scrollTop;
//
// if(startTopScroll<=0){
// this.scrollTop=1;
// }
// else if(startTopScroll&&startTopScroll+this.offsetHeight>=this.scrollHeight){
// this.scrollTop=this.scrollHeight-this.offsetHeight-1;
// }
// }
},
dialogtouchStart:function(e){
ui.click.touchStart.call(this,e);