scroll
This commit is contained in:
parent
176d9da76b
commit
d50326170f
22
game/game.js
22
game/game.js
|
@ -37191,17 +37191,17 @@
|
||||||
this.startX=e.touches[0].clientX/game.documentZoom;
|
this.startX=e.touches[0].clientX/game.documentZoom;
|
||||||
this.startY=e.touches[0].clientY/game.documentZoom;
|
this.startY=e.touches[0].clientY/game.documentZoom;
|
||||||
_status.dragged=false;
|
_status.dragged=false;
|
||||||
if(lib.device=='ios'){
|
// if(lib.device=='ios'){
|
||||||
var startY=e.touches[0].pageY;
|
// var startY=e.touches[0].pageY;
|
||||||
var startTopScroll=this.scrollTop;
|
// var startTopScroll=this.scrollTop;
|
||||||
|
//
|
||||||
if(startTopScroll<=0){
|
// if(startTopScroll<=0){
|
||||||
this.scrollTop=1;
|
// this.scrollTop=1;
|
||||||
}
|
// }
|
||||||
else if(startTopScroll&&startTopScroll+this.offsetHeight>=this.scrollHeight){
|
// else if(startTopScroll&&startTopScroll+this.offsetHeight>=this.scrollHeight){
|
||||||
this.scrollTop=this.scrollHeight-this.offsetHeight-1;
|
// this.scrollTop=this.scrollHeight-this.offsetHeight-1;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
dialogtouchStart:function(e){
|
dialogtouchStart:function(e){
|
||||||
ui.click.touchStart.call(this,e);
|
ui.click.touchStart.call(this,e);
|
||||||
|
|
Loading…
Reference in New Issue