Fixed #2618 - The overlay elements automatically close on mobile devices
parent
441f51bdc6
commit
319df1e932
|
@ -250,7 +250,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.overlayVisible) {
|
||||
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||
this.hideOverlay();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -768,7 +768,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.overlayVisible && !DomHandler.isAndroid()) {
|
||||
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||
this.overlayVisible = false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -243,7 +243,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.overlayVisible) {
|
||||
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||
this.hide();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -502,7 +502,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.overlayVisible) {
|
||||
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||
this.overlayVisible = false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -165,7 +165,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.visible) {
|
||||
if (this.visible && !DomHandler.isTouchDevice()) {
|
||||
this.visible = false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -169,7 +169,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.visible) {
|
||||
if (this.visible && !DomHandler.isTouchDevice()) {
|
||||
this.hide();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -435,7 +435,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.overlayVisible) {
|
||||
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||
this.hide();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -176,7 +176,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.overlayVisible) {
|
||||
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||
this.hide();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -495,7 +495,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.overlayVisible && !DomHandler.isAndroid()) {
|
||||
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||
this.hide();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -203,7 +203,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.visible && !DomHandler.isAndroid()) {
|
||||
if (this.visible && !DomHandler.isTouchDevice()) {
|
||||
this.visible = false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -227,7 +227,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.overlayVisible) {
|
||||
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||
this.overlayVisible = false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -148,7 +148,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.visible) {
|
||||
if (this.visible && !DomHandler.isTouchDevice()) {
|
||||
this.hide();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -72,7 +72,7 @@ function show(el) {
|
|||
DomHandler.fadeIn(tooltipElement, 250);
|
||||
|
||||
window.addEventListener('resize', function onWindowResize() {
|
||||
if (!DomHandler.isAndroid()) {
|
||||
if (!DomHandler.isTouchDevice()) {
|
||||
hide(el);
|
||||
}
|
||||
this.removeEventListener('resize', onWindowResize);
|
||||
|
|
|
@ -276,7 +276,7 @@ export default {
|
|||
bindResizeListener() {
|
||||
if (!this.resizeListener) {
|
||||
this.resizeListener = () => {
|
||||
if (this.overlayVisible) {
|
||||
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||
this.hide();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue