mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-12 13:48:10 +09:00
commit
115adbf444
@ -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') {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user