first
This commit is contained in:
14
node_modules/vant/es/utils/dom/reset-scroll.js
generated
vendored
Normal file
14
node_modules/vant/es/utils/dom/reset-scroll.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Hack for iOS12 page scroll
|
||||
* https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800
|
||||
*/
|
||||
import { isIOS as checkIsIOS } from '../validate/system';
|
||||
import { getRootScrollTop, setRootScrollTop } from './scroll';
|
||||
var isIOS = checkIsIOS();
|
||||
/* istanbul ignore next */
|
||||
|
||||
export function resetScroll() {
|
||||
if (isIOS) {
|
||||
setRootScrollTop(getRootScrollTop());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user