This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

21
node_modules/vant/lib/utils/dom/reset-scroll.js generated vendored Normal file
View File

@ -0,0 +1,21 @@
"use strict";
exports.__esModule = true;
exports.resetScroll = resetScroll;
var _system = require("../validate/system");
var _scroll = require("./scroll");
/**
* Hack for iOS12 page scroll
* https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800
*/
var isIOS = (0, _system.isIOS)();
/* istanbul ignore next */
function resetScroll() {
if (isIOS) {
(0, _scroll.setRootScrollTop)((0, _scroll.getRootScrollTop)());
}
}