Update timeline.vue

This commit is contained in:
tamaina 2018-04-15 23:49:14 +09:00 committed by GitHub
parent f1369188a2
commit c9b26183f3

View File

@ -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') {