0
工作這是移動()函數移動()元素功能無法在Android
function move(){
/*calculate*/
var size = { x: $(window).width(), y: $(window).height() };
var scroll = { x: $(window).scrollLeft(), y: $(window).scrollTop() };
var height = h!=null ? h : this.esqueleto.lightbox.outerHeight();
var width = w!=null ? w : this.esqueleto.lightbox.outerWidth();
var y = 0;
var x = 0;
//vertically center
x = scroll.x + ((size.x - width)/2);
if (this.visible) {
y = scroll.y + (size.y - height)/2;
} else if (this.options.emergefrom == "bottom") {
y = (scroll.y + size.y + 14);
} else {// top
y = (scroll.y - height) - 14;
}
/*Process*/
if (!this.animations.move) {
this.morph(this.esqueleto.move, {
'left' : x
}, 'move');
}
this.morph(this.esqueleto.move, {
'top' : y
}, 'move');
} else {
this.esqueleto.move.css({
'left' : x,
'top' : y
});
}
}
任何想法,爲什麼是桌面(所有瀏覽器),iphone,這個工作..但不是在Android?
構建一個簡單而抽象的測試用例,並在[jQuery Bug-Tracker](http://bugs.jquery.com)上提交一個錯誤。 –