From 80e52c57e1eee8a433b43ca768978b63128113b7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 22 Oct 2018 18:23:20 +0900 Subject: [PATCH] Fix #2958 --- src/client/app/init.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/app/init.ts b/src/client/app/init.ts index 5bfb48778..fc09c3eea 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 {