Commit 50c93bd1 authored by hbcui1984's avatar hbcui1984

解决popover在滑动过程中,圆角变方角的问题

parent b208e3a9
......@@ -2421,6 +2421,12 @@ select:focus {
box-shadow: none;
}
.mui-popover .mui-scroll-wrapper {
margin: 7px 0;
background-clip: padding-box;
border-radius: 7px;
}
.mui-popover .mui-scroll .mui-table-view {
max-height: none;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2456,6 +2456,7 @@ var mui = (function(document, undefined) {
_start: function(e) {
this.moved = this.needReset = false;
this._transitionTime();
if (this.isInTransition) {
this.needReset = true;
this.isInTransition = false;
......@@ -2463,17 +2464,17 @@ var mui = (function(document, undefined) {
this.setTranslate(Math.round(pos.x), Math.round(pos.y));
this.resetPosition(); //reset
$.trigger(this.wrapper, 'scrollend', this);
e.stopPropagation();
// e.stopPropagation();
e.preventDefault();
}
this.reLayout();
$.trigger(this.wrapper, 'beforescrollstart', this);
},
_drag: function(e) {
if (this.needReset) {
e.stopPropagation(); //disable parent drag(nested scroller)
return;
}
// if (this.needReset) {
// e.stopPropagation(); //disable parent drag(nested scroller)
// return;
// }
var detail = e.detail;
//ios8 hack
if ($.os.ios && parseFloat($.os.version) >= 8) {
......@@ -2537,9 +2538,14 @@ var mui = (function(document, undefined) {
this.moved = true;
this.x = newX;
this.y = newY;
},
_flick: function(e) {
if (!this.moved || this.needReset) {
// if (!this.moved || this.needReset) {
// return;
// }
if (!this.moved) {
return;
}
var detail = e.detail;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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