summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-22 18:23:20 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-22 18:23:20 +0900
commit80e52c57e1eee8a433b43ca768978b63128113b7 (patch)
tree68240b631e97ac2782789de59259f2357b36e32e /src/client
parent:art: (diff)
downloadsharkey-80e52c57e1eee8a433b43ca768978b63128113b7.tar.gz
sharkey-80e52c57e1eee8a433b43ca768978b63128113b7.tar.bz2
sharkey-80e52c57e1eee8a433b43ca768978b63128113b7.zip
Fix #2958
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/init.ts6
1 files changed, 6 insertions, 0 deletions
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 {