diff --git a/src/client/app/init.ts b/src/client/app/init.ts index 5bfb48778c..fc09c3eeaf 100644 --- a/src/client/app/init.ts +++ b/src/client/app/init.ts @@ -167,6 +167,12 @@ export default (callback: (launch: (router: VueRouter, api?: (os: MiOS) => API) } }, false); + window.addEventListener('scroll', () => { + if (window.scrollY <= 8) { + os.store.commit('clearBehindNotes'); + } + }, { passive: true }); + Vue.mixin({ data() { return {