Commit cd8b75b6 authored by hbcui1984's avatar hbcui1984

解决pullRefresh().scrollTo()方法在Android平台报错的bug

parent 37905123
...@@ -4822,7 +4822,7 @@ var mui = (function(document, undefined) { ...@@ -4822,7 +4822,7 @@ var mui = (function(document, undefined) {
window.addEventListener('dragup', this); window.addEventListener('dragup', this);
}, },
scrollTo: function(x, y, time) { scrollTo: function(x, y, time) {
$.scrollTo(x, y, time); $.scrollTo(y, time);
}, },
refresh: function(isReset) { refresh: function(isReset) {
if (isReset && this.finished) { if (isReset && this.finished) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -39,11 +39,7 @@ ...@@ -39,11 +39,7 @@
if(contentWebview==null){ if(contentWebview==null){
contentWebview = plus.webview.currentWebview().children()[0]; contentWebview = plus.webview.currentWebview().children()[0];
} }
if(mui.os.ios){ contentWebview.evalJS("mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)");
contentWebview.evalJS("mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)");
}else{
contentWebview.evalJS('mui.scrollTo(0, 100)');
}
}); });
</script> </script>
......
...@@ -4822,7 +4822,7 @@ var mui = (function(document, undefined) { ...@@ -4822,7 +4822,7 @@ var mui = (function(document, undefined) {
window.addEventListener('dragup', this); window.addEventListener('dragup', this);
}, },
scrollTo: function(x, y, time) { scrollTo: function(x, y, time) {
$.scrollTo(x, y, time); $.scrollTo(y, time);
}, },
refresh: function(isReset) { refresh: function(isReset) {
if (isReset && this.finished) { if (isReset && this.finished) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
window.addEventListener('dragup', this); window.addEventListener('dragup', this);
}, },
scrollTo: function(x, y, time) { scrollTo: function(x, y, time) {
$.scrollTo(x, y, time); $.scrollTo(y, time);
}, },
refresh: function(isReset) { refresh: function(isReset) {
if (isReset && this.finished) { if (isReset && this.finished) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment