From c9b26183f321da59d0242e1979dda37c4feac3a8 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 15 Apr 2018 23:49:14 +0900 Subject: [PATCH 1/2] Update timeline.vue --- src/client/app/desktop/views/components/timeline.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/app/desktop/views/components/timeline.vue b/src/client/app/desktop/views/components/timeline.vue index 829e73106..dfe3e5437 100644 --- a/src/client/app/desktop/views/components/timeline.vue +++ b/src/client/app/desktop/views/components/timeline.vue @@ -113,8 +113,7 @@ export default Vue.extend({ const current = window.scrollY + window.innerHeight; if (current > document.body.offsetHeight - 8) this.more(); } - if (window.scrollY > 100) this.isTop = false; - else this.isTop = true; + this.isTop = window.scrollY < 100; }, onKeydown(e) { if (e.target.tagName != 'INPUT' && e.target.tagName != 'TEXTAREA') { From 5d90abc011222a837b2771cac1b6dc6dc17aeade Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 15 Apr 2018 23:50:00 +0900 Subject: [PATCH 2/2] Update timeline.vue --- src/client/app/mobile/views/components/timeline.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/app/mobile/views/components/timeline.vue b/src/client/app/mobile/views/components/timeline.vue index 7bb71cb07..17d5d18ff 100644 --- a/src/client/app/mobile/views/components/timeline.vue +++ b/src/client/app/mobile/views/components/timeline.vue @@ -98,8 +98,7 @@ export default Vue.extend({ }); }, onNote(note) { - if (this.isTop) this.notes.pop(); - this.notes.unshift(note); + this.isTop = window.scrollY < 100; }, onChangeFollowing() { this.fetch();