Commit 83680de9 authored by hbcui1984's avatar hbcui1984

优化iOS平台下拉刷新的区域滚动体验

parent 9341852e
......@@ -2626,6 +2626,7 @@ var mui = (function(document, undefined) {
scrollY: true,
scrollX: false,
indicators: true,
deceleration:0.003,
down: {
height: 50,
contentdown: '下拉可以刷新',
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -532,9 +532,12 @@
<script>
mui.init();
(function($) {
//阻尼系数
var deceleration = mui.os.ios?0.003:0.0009;
$('.mui-scroll-wrapper').scroll({
bounce: false,
indicators: true //是否显示滚动条
indicators: true, //是否显示滚动条
deceleration:deceleration
});
$.ready(function() {
//循环初始化所有下拉刷新,上拉加载。
......@@ -542,7 +545,6 @@
$(pullRefreshEl).pullToRefresh({
down: {
callback: function() {
console.log('pulldown');
var self = this;
setTimeout(function() {
var ul = self.element.querySelector('.mui-table-view');
......@@ -553,7 +555,6 @@
},
up: {
callback: function() {
console.log('pullup');
var self = this;
setTimeout(function() {
var ul = self.element.querySelector('.mui-table-view');
......
......@@ -2626,6 +2626,7 @@ var mui = (function(document, undefined) {
scrollY: true,
scrollX: false,
indicators: true,
deceleration:0.003,
down: {
height: 50,
contentdown: '下拉可以刷新',
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -28,6 +28,7 @@
scrollY: true,
scrollX: false,
indicators: true,
deceleration:0.003,
down: {
height: 50,
contentdown: '下拉可以刷新',
......
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