Skip to content

Commit 8b847e2

Browse files
duanjunyyx990803
authored andcommitted
修复ios微信中滑动导致双向绑定失效 (#2674)
1 parent 5bd697e commit 8b847e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/env.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export const devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__
1515
const UA = inBrowser && window.navigator.userAgent.toLowerCase()
1616
export const isIE9 = UA && UA.indexOf('msie 9.0') > 0
1717
export const isAndroid = UA && UA.indexOf('android') > 0
18+
export const isIos = UA && /(iphone|ipad|ipod|ios)/i.test(UA)
19+
export const isWechat = UA && UA.indexOf('micromessenger') > 0
1820

1921
let transitionProp
2022
let transitionEndEvent
@@ -74,7 +76,7 @@ export const nextTick = (function () {
7476
}
7577

7678
/* istanbul ignore if */
77-
if (typeof MutationObserver !== 'undefined') {
79+
if (typeof MutationObserver !== 'undefined' && !(isWechat && isIos)) {
7880
var counter = 1
7981
var observer = new MutationObserver(nextTickHandler)
8082
var textNode = document.createTextNode(counter)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy