/**
 * Hack for iOS12 page scroll
 * https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800
 */ import { getRootScrollTop , setRootScrollTop } from './scroll' ; const isIOS = /ios|iphone|ipad|ipod/ . test ( navigator . userAgent . toLowerCase ( ) ) ; export function resetScroll ( ) { if ( isIOS ) { setRootScrollTop ( getRootScrollTop ( ) ) ; } }