Commit 997b4f4a authored by hbcui1984's avatar hbcui1984

修复div模式侧滑菜单(主界面不动、菜单移动)来回滑动时,菜单不显示的bug

parent 37f69d3d
......@@ -4974,6 +4974,7 @@ var mui = (function(document, undefined) {
}
if (!this.isDragging && Math.abs(this.lastX - this.startX) > this.options.dragThresholdX && (detail.direction === 'left' || (detail.direction === 'right'))) {
if (this.slideIn) {
this.scroller = this.wrapper.querySelector(SELECTOR_INNER_WRAP);
if (this.classList.contains(CLASS_ACTIVE)) {
if (this.offCanvasRight && this.offCanvasRight.classList.contains(CLASS_ACTIVE)) {
this.offCanvas = this.offCanvasRight;
......@@ -5012,7 +5013,7 @@ var mui = (function(document, undefined) {
}
}
}
if (this.offCanvas) {
if (this.offCanvas && this.scroller) {
this.startX = this.lastX;
this.isDragging = true;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4974,6 +4974,7 @@ var mui = (function(document, undefined) {
}
if (!this.isDragging && Math.abs(this.lastX - this.startX) > this.options.dragThresholdX && (detail.direction === 'left' || (detail.direction === 'right'))) {
if (this.slideIn) {
this.scroller = this.wrapper.querySelector(SELECTOR_INNER_WRAP);
if (this.classList.contains(CLASS_ACTIVE)) {
if (this.offCanvasRight && this.offCanvasRight.classList.contains(CLASS_ACTIVE)) {
this.offCanvas = this.offCanvasRight;
......@@ -5012,7 +5013,7 @@ var mui = (function(document, undefined) {
}
}
}
if (this.offCanvas) {
if (this.offCanvas && this.scroller) {
this.startX = this.lastX;
this.isDragging = true;
......
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.
......@@ -105,6 +105,7 @@
}
if (!this.isDragging && Math.abs(this.lastX - this.startX) > this.options.dragThresholdX && (detail.direction === 'left' || (detail.direction === 'right'))) {
if (this.slideIn) {
this.scroller = this.wrapper.querySelector(SELECTOR_INNER_WRAP);
if (this.classList.contains(CLASS_ACTIVE)) {
if (this.offCanvasRight && this.offCanvasRight.classList.contains(CLASS_ACTIVE)) {
this.offCanvas = this.offCanvasRight;
......@@ -143,7 +144,7 @@
}
}
}
if (this.offCanvas) {
if (this.offCanvas && this.scroller) {
this.startX = this.lastX;
this.isDragging = true;
......
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